A condition is a way of comparing the contents of an Creator variable with another bit of information. You have to supply three bits of information in a condition: 1. The name of the variable e.g. my_Score. 2. The type of comparison e.g. Is Equal to. 3. The thing you want to compare with the variable e.g. another variable, such as passmark. The condition says: my_Score Is Equal to passmark The condition is used in If, Else and Select actions to check if a list of actions should be run or not. The actions will only be played if the condition is met – and the outcome of a condition can only be true or false (i.e. correct or incorrect). Example: Lets use the If action and say that if the condition is true, then run the list of actions. Now we will set the contents of the variables: my_Score = 8 passmark = 7 And the type of comparison is: Is Greater than The condition says: 8 Is Greater than 7 This condition is true because 8 is a greater value than 7. The list of actions in the If action will therefore be played because we said if the condition is true then play them. However, if passmark contained the value 9 then the condition would be false and the actions would not be played. A condition is part of a Conditional action. |
|