Instruction.is_cmp()

Returns True if the instruction is a comparison instruction i.e performing comparison operation/s using operators like >, <, == etc.., otherwise returns False.

is_cmp() -> bool

Query Example

from glider import *

def query():
  return Instructions().exec(1000).filter(lambda x: x.is_cmp())

With the Glider 1.0 update, calling the exec function returns an APIList[Instruction]. You can then use Instruction functions, which are applied to each element of the APIList[Instruction]

Output Example

Last updated