Skip to content

$elseif

$elseif is used to create an else statement with condition.

Usage

$elseif[condition]

Example(s)

Example usage of $if: old (will return “Hello” when the condition is true):

You require $endelseif to end the $elseIf statement.

1
client.command({
2
name: "if",
3
$if: "old",
4
code: `
5
$if[1==2]
6
Hello!
7
$elseif[2==4]
8
$endelseif
9
$endif
10
`
11
});