Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:programmingblocks:logic [2018/02/26 16:22] kniwwelino [Blocks] |
en:programmingblocks:logic [2018/04/23 13:38] (current) kniwwelino |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Logic ===== | ||
+ | ==== Blocks ==== | ||
+ | === If - then === | ||
+ | {{: | ||
+ | |||
+ | This block allows you to create a condition: only if the statement (condition) next to '' | ||
+ | |||
+ | You can customize this block and add multiple '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | \\ | ||
+ | === Comparing two numbers === | ||
+ | {{: | ||
+ | |||
+ | With this block you can compare two numbers (to be added inside the holes). The result is either true or false. | ||
+ | |||
+ | Options: | ||
+ | * '' | ||
+ | * '' | ||
+ | * ''<'': | ||
+ | * '' | ||
+ | * ''>'': | ||
+ | * '' | ||
+ | |||
+ | \\ | ||
+ | === Logical operations === | ||
+ | {{: | ||
+ | |||
+ | This block allows you to make logical operations on two statements (conditions) (to be added inside the holes). | ||
+ | |||
+ | Options: | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | \\ | ||
+ | === Logical negation === | ||
+ | {{: | ||
+ | |||
+ | Returns true if the block on the right is false. Returns false if the block on the right is true. | ||
+ | |||
+ | \\ | ||
+ | === True or false condition === | ||
+ | {{: | ||
+ | |||
+ | Represents either '' | ||
+ | |||
+ | \\ | ||
+ | === Null === | ||
+ | {{: | ||
+ | |||
+ | Returns the value '' | ||
+ | |||
+ | \\ | ||
+ | === Shortcut for a condition === | ||
+ | {{: | ||
+ | |||
+ | This block checks a statement (condition) added to test. If the statement is true, then the blocks next to '' | ||
+ | |||
+ | \\ | ||
+ | ==== Example ==== | ||
+ | You can find a simple example for using the logic blocks in the sample project [[en: |