Custom Commands
Search…
if functions
this is useful when you want to check conditions
Check only if for inline if statement

Main Function

$if

Is the start of a If function
1
$if[val1(!=/==/>=/<=/>/<)val2]
Copied!

Sub Functions

$else

useful when you want to return a message if the condition is false.

$endif

with this you are ending the if statement you can start a new. This is required

$elseIf

make a second if with in a if statement
1
$elseIf[val1(!=/==/>=/<=/>/<)val2]
Copied!

$endelseIf

the end of a else if required!

Example1:

1
$if[2==2]
2
2 is equal to 2!
3
$else
4
2 is not equal to 2
5
$endif
Copied!
this would output every time 2 is equal ... .Since 2==2 is true.The else is just optional and not required for a if statement

Example2:

1
$if[1==1]
2
1 is equal to 1!
3
$elseIf[2==2]
4
2 is equal to 2
5
$endelseIf
6
$endif
Copied!
this would output every time 1 is equal ...a nd 2 is equal...As you can see it is like a if statement in a if.It is possible to use multiple elseif statement
Every Function is case sensitive so $if[1== 1] would never return true since it includes a whitespace

$checkCondition[val1(!=/==/>=/<=/>/<)val2]

this will check the condition and return true/false
like $checkCondition[hi==hi] would return true

Syntax

Exact Match

== - Use this 2 signs to check if 2 values EXACTLY match eatch other.
!= - Use this 2 signs to check if 2 values do NOT match each other.
&gt;= - Use this 2 signs to check if number string 1 greater is, or the same as number string 2
&lt;= - Use this 2 signs to check if number string 1 is smaller, or the same as number string 2
&gt; - Use this sign to check if number string 1 is greater then number string 2
&lt; - Use this sign to check if number string 1 is smaller then number string 2
Please keep in mind, that if/ onlyIf statements use EXACT match! So if I would check\: $if\[ccommandbot.ga==Ccommandbot.ga\] it will be false, because of the capital C
Last modified 2mo ago