Skip to content

Commit

Permalink
[irods/irods#7268] Added extra warning to advise users against using …
Browse files Browse the repository at this point in the history
…on().
  • Loading branch information
FifthPotato authored and korydraughn committed Jul 12, 2024
1 parent 9542557 commit bcf94bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/plugins/irods_rule_language.md
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,9 @@ This Is Not A Valid Function Name or Rule Name

### Rule Condition

!!! Note
Use of `on()` may lead to unexpected behavior. If all `on()` conditions within a rule fail, the rule will return an error. Consider use of `if()` for more familiar flow control.

Rule conditions should be expressions of type `boolean`. The rule is executed only when the rule condition evaluates to true. There exist three failure conditions that will cause a rule failure error:

1. All rule conditions evaluate to false.
Expand Down

0 comments on commit bcf94bc

Please sign in to comment.