This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
editor:blocks:condition:if [2017/12/22 03:06] interactive_games |
editor:blocks:condition:if [2017/12/26 08:53] (current) redwebgames |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== If ====== | ====== If ====== | ||
- | the (if) command is a very important block of code that allows modifying a variable when it is being compared by another variable. | + | The **If** command is a very important block of code that allows modifying a variable when it is being compared by another variable. |
- | You can compare a variable when it is not comparing, when it is comparing, when the value is passing and when the value is not being passed. | + | You can compare a [[editor:blocks:variables:var|variable]] when it is not comparing, when it is comparing, when the value is passing and when the value is not being passed. |
- | You can compare more than 2 things in the same command, for example, you can compare a value when comparing the variable and also when the variable is passing from the value. | + | |
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | {{:editor:blocks:condition:screenshot_2017-12-22-10-46-40-1.png|}} | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | You can compare more than 2 things in the same command, for example, you can compare a value when comparing the variable and also when the variable is passing from the [[editor:blocks:variables:var|value]]. | ||
You can compare any value | You can compare any value | ||
+ | {{ :editor:blocks:info-148099_960_720.png?20|}}//<color #ed1c24>MORE INFORMATION</color>// | ||
+ | |||
+ | ---- | ||
+ | |||
+ | * [[editor:blocks:condition:else-if|]] | ||
+ | * [[editor:blocks:condition:else|]] | ||
+ | * [[editor:blocks:condition:if-button-pressed|]] | ||
+ | * [[editor:blocks:condition:if-collision|]] | ||
+ | * [[editor:blocks:condition:if-joy-pressed|]] | ||
+ | * [[editor:blocks:condition:if-key|]] | ||
+ | * [[editor:blocks:condition:if-mouse|]] | ||
+ | * [[editor:blocks:condition:if-ray-hit|]] |