From 1ba9e7b6d9948a7b1477792eca4016b2e8e346d9 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Wed, 25 Oct 2017 16:21:58 +0200 Subject: Update HelpMe.md more details about if. --- HelpMe.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'HelpMe.md') diff --git a/HelpMe.md b/HelpMe.md index 3c16e8d..c6ed209 100644 --- a/HelpMe.md +++ b/HelpMe.md @@ -187,6 +187,9 @@ To switch the operator to act in **All Of Them** method you must add ```*``` cha 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. + + ## example: @@ -206,11 +209,17 @@ if at least one die is equal to 6, then roll another d6 and add it to the result if all dice are equal to 6, then roll another d6 and add it to the result. +> 2d10i:[>15]{"Success"}{"Fail"} + +if the sum of two dice is greater than 15, It displays "Success", override it displays "Fail". + +> 2d10i:[>15]{"Success %1 "}{"Fail %1"} -> 2d10i:[>15]{"Success"} +Same as above, but the final result is displayed beside Success or Fail. -if the sum of two dice is greater than 15, It displays "Success". +> 2d10i:[>15]{"Success %1 [%2]"}{"Fail %1 [%2]"} +Same as above, but the result of each die is displayed inside square brackets. ## Arithmetic -- cgit v1.2.3-70-g09d2