IfInstruction.get_condition()
get_condition() → Condition
Returns condition of the if-statement.
Query Example
from glider import *
def query():
instructionlist = Instructions().if_instructions().exec(1)
condition = instructionlist[0].get_condition()
print(condition.is_eq())
return instructionlistOutput Example

Last updated