Open Alexejhero opened 1 year ago
Sorry for the late response!
You can use in
parameters or macros so that the parameters are not set to a value.
// These do the exact same thing
// Macro
Boolean X(Number value): value + 2;
// Function
Boolean X(in Number value) {
// This will output correctly as long as nothing inside the method generates actions.
return value + 2;
}
OSTW will need to ensure that users don't generate actions in conditions
If you call a custom method from a condition, the condition will be evaluated before the body of the rule, which sets the required arguments variables
compiles to
As such, this condition is evaluated incorrectly.