25
: constant value of 25(0 to 1) * MyVariable
: the product of a range and another variableif VariableA > 10 then 1 else 0
: self explanatory. You can link multiple conditions with and
and/or or
. See if statements for more!sample(3, 5)
: either the value 3 or the value 5 (discrete distribution)+ - * / ^ > < =
//
Everything between the double slash and the end of the line will be ignored by Causal when calculating. This is useful when you want to remind yourself (or others) what the formula is doing.