Skip to content

Latest commit

 

History

History
89 lines (65 loc) · 983 Bytes

usdif.md

File metadata and controls

89 lines (65 loc) · 983 Bytes

$if

This function will allow you too easily make an if statement

Main Function

$if

This is the main function

$if[value1(!=/==/>=/<=/>/<)value2]

Sub Functions

$else

Can be used to return a message if the condition is false

$endif

Ends the if statement

$elseIf

Makes a chain with the if statement

$elseIf[value1(!=/==/>=/<=/>/<)value2]

$endelseIf

Ends the else If chain

Using the Function

bot.command({
name: "if",
code: `
$if[1==1]
1 is equal to 1!
$else
1 is not equal to 1
$endif`
//This is your very simple if. All functions can be used 
})

Using $elseIf

bot.command({
name: "if",
code: `
$if[1==1]
1 is equal to 1!
$elseIf[2==2]
2 is equal to 2
$endelseIf
$endif
`
})

Multiple $elseIf's

bot.command({
name: "if",
code: `
$if[1==1]
1 is equal to 1!
$elseIf[2==2]
2 is equal to 2
$endelseIf
$elseIf[3==3]
3 is equal to 3
$endelseIf
$endif
`
})