Skip to content



cond staticmethod

Quick conditional operation. This is equivalent to a ternary operator available in some languages: i.e. a ? b : c, meaning b if a is true, or c if a is false. There is less computation overhead (less latency) when running this operation relative to the if conditional.

assign(var, cond(a, b, c)) #where a is a boolean expression