Only print "Available conditons:" section if conditions are available
parent
ea4e8f0248
commit
ab0912b968
|
@ -515,7 +515,8 @@ def setup_and_run_task(start_field, start_position, start_heading, text, allowed
|
|||
draw_field()
|
||||
print("\n"+text)
|
||||
print("\nAllowed commands: "+", ".join(allowed_commands))
|
||||
print("\nAvailable conditions: "+", ".join(allowed_conditions))
|
||||
if len(allowed_conditions)>0:
|
||||
print("\nAvailable conditions: "+", ".join(allowed_conditions))
|
||||
result = evaluate_parser_result(parse_code(input("\nCode: "), allowed_commands, allowed_conditions))
|
||||
print(result)
|
||||
time.sleep(3)
|
||||
|
|
Loading…
Reference in New Issue