Env Functions

ifelse

env logic.ifelse(
    cond: 'bool',
    iftrue: 'Attribute',
    iffalse: 'Attribute'
)

Arguments

  • cond: 'bool' => Attribute that can be cast to bool value
  • iftrue: 'Attribute' => Output if cond is true
  • iffalse: 'Attribute' => Output if cond is false

Simple if else condition

gt

env logic.gt(a: '& Attribute', b: '& Attribute')

Arguments

  • a: '& Attribute' => first attribute
  • b: '& Attribute' => second attribute

Greater than check

lt

env logic.lt(a: '& Attribute', b: '& Attribute')

Arguments

  • a: '& Attribute' => first attribute
  • b: '& Attribute' => second attribute

Greater than check

eq

env logic.eq(a: '& Attribute', b: '& Attribute')

Arguments

  • a: '& Attribute' => first attribute
  • b: '& Attribute' => second attribute

Greater than check

and

env logic.and(*conds)

Arguments

  • *conds => List of attributes that can be cast to bool

Boolean and

or

env logic.or(*conds)

Arguments

  • *conds => List of attributes that can be cast to bool

boolean or

not

env logic.not(cond: 'bool')

Arguments

  • cond: 'bool' => attribute that can be cast to bool

boolean not