Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
gdevelop5:all-features:advanced-conditions [2019/06/20 12:52]
piyushpalawat99 created
gdevelop5:all-features:advanced-conditions [2019/07/02 13:17] (current)
piyushpalawat99
Line 13: Line 13:
 If the "​Not"​ condition is used in an event, it returns the contrary of the sub-conditions. If a sub-condition is true, it returns false and if a sub-condition is false, it returns true. If the "​Not"​ condition is used in an event, it returns the contrary of the sub-conditions. If a sub-condition is true, it returns false and if a sub-condition is false, it returns true.
  
-##Trigger once+## Trigger once
  
 Whenever the "​Trigger once while true" condition is used, the actions for the event are triggered only once, for each time the conditions have been met. Whenever the "​Trigger once while true" condition is used, the actions for the event are triggered only once, for each time the conditions have been met.
 +
 +## Compare two numbers
 +
 +When you use the "​Compare two numbers"​ condition, it will compare the two numbers/​expression based on the Sign of the test. If the numbers satisfy the test, the condition returns true and the corresponding actions are performed.
 +
 +For example, suppose if the first value is entered as 5, sign of the test is set to < (less than)" and the second value is equal to 7. In such a case, the test returns true because 5 is less than 7.
 +
 +## Compare two strings
 +
 +When you use the "​Compare two strings"​ condition, it will compare the two strings/​expression based on the Sign of the test. If the numbers satisfy the test, the condition returns true and the corresponding actions are performed.
 +
 +## Always true/false
 +
 +If you want a condition to always return true and the corresponding actions to be performed, you can use the "​Always"​ condition. If the condition is inverted, it will always return false, i.e. the corresponding actions will never be performed.