effect · divide_temp_variable
Definition
- Supported scope:
any - Supported target:
none
Description
Divides a temp variable by a value, another variable, or a [math expression](script_math_expression.md).
`if_zero` specifies the value to assign if the divisor is zero (default is zero).
### Examples
divide_temp_variable = { num_dogs = 2 } divide_temp_variable = { var = num_dogs value = 2 if_zero = 0 } divide_temp_variable = { num_dogs = { value = num_cats add = 1 } }