ValueExpression.get_components()
Returns the value expression's components
get_components(self) -> APIList[Union[
Value
,
NoneObject
]]
Query Example
from glider import *
def query():
instructions = (
Instructions()
.exec(1, 6)
)
for instruction in instructions:
main_value = instruction.get_value()
if isinstance(main_value, ValueExpression):
for component in main_value.get_components():
print(component)
print(component.expression)
return instructions
Example Output

Last updated