From 0d38ac1bb32b2d75111cb49309d3b29220ccb485 Mon Sep 17 00:00:00 2001 From: Robin Moussu Date: Sat, 2 Jun 2018 07:37:21 +0200 Subject: Compact the explanation of the comparator --- HelpMe.md | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'HelpMe.md') diff --git a/HelpMe.md b/HelpMe.md index 00e7335..3f83a07 100644 --- a/HelpMe.md +++ b/HelpMe.md @@ -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: -- cgit v1.2.3-70-g09d2