Jump to content

Skript+/If, Else statements

From Wikibooks, open books for an open world

Next, you are looking for If, Else statements...

The If statement looks like this:

If %x% Is 9:
Output: Hello, world!

And for the Else statement:

Else:
Output: Hai, world!

Example

[edit | edit source]

This is a example how you can use both the If and Else statements together:

4+7+3 => %x%
If %x% Is 14:
Output: Correct!
Else:
Output: Incorrect, try again with a new number!