diff options
| author | 2018-06-02 07:37:21 +0200 | |
|---|---|---|
| committer | 2018-06-02 07:37:21 +0200 | |
| commit | 0d38ac1bb32b2d75111cb49309d3b29220ccb485 (patch) | |
| tree | daba35d209b04621d69a8f9ca038746c452bb70b /HelpMe.md | |
| parent | 2b228e2a6bf78a7b2b853cd1e3fadb76d32e8f0c (diff) | |
| download | OneRoll-0d38ac1bb32b2d75111cb49309d3b29220ccb485.tar.gz OneRoll-0d38ac1bb32b2d75111cb49309d3b29220ccb485.zip | |
Compact the explanation of the comparator
Diffstat (limited to 'HelpMe.md')
| -rw-r--r-- | HelpMe.md | 22 |
1 files changed, 8 insertions, 14 deletions
@@ -316,24 +316,18 @@ There is also 2 optional parameters > i*[]{}{} -* \* : the compare method -* [] : the validator -* {} : the true instruction -* {} : the false instruction +* \*: the compare method +* []: the validator +* {}: the true instruction +* {}: the false instruction #### Compare method There are 3 different methods. -* **On Each** : the condition is tested on each die from the previous part of the command. \[Default method\] -* **All Of Them** : All dice must fit the condition to trigger the true instruction. If all dice do not fit the condition the false instruction is run. -* **One Of Them** : at least one die must fit the condition to trigger the true instruction. If no dices fit the condition the false instruction is run. -* **On Scalar** : the condition is evaluated on the scalar result of the dice roll. - -To switch the operator to act in **All Of Them** method you must add **```*```** character as compare method position. -To switch the operator to act in **One Of Them** method you must add **```.```** character as compare method position. -To switch the operator to act in **On Scalar** method you must add **```:```** character as compare method position. - -If you plan to use if operator to display text message. You must surround text with ```"```. Example available below. +* **On Each (default)**: the condition is tested on each die from the previous part of the command. \[Default method\] +* **All Of Them (`*`)**: All dice must fit the condition to trigger the true instruction. If all dice do not fit the condition the false instruction is run. +* **One Of Them (`.`)**: at least one die must fit the condition to trigger the true instruction. If no dices fit the condition the false instruction is run. +* **On Scalar (`:`)**: the condition is evaluated on the scalar result of the dice roll. #### If examples: |