Value.is_main_value()

Returns true if the value doesn't have a parent value, false otherwise

is_main_value() → bool

Query Example

from glider import *

def query():
    instructions = Instructions().exec(1, 5)
    for instruction in instructions:
        components = instruction.get_components()
        for component in components:
            print(component.is_main_value())
            if component.is_main_value():
                print(component.expression)
    return instructions

Output

Last updated