Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
gdevelop5:all-features:expressions [2019/01/01 12:56]
bwpanda [Random values] - Clearer documentation for 'RandomInRange(min, max)'
gdevelop5:all-features:expressions [2019/07/30 23:30] (current)
piyushpalawat99
Line 1: Line 1:
 # Writing expressions # Writing expressions
-GDevelop supports expressions! Expressions are dynamic values that can be used in event parameters. For example to set an object position, ​ you can use a fixed number as ``75`` or you can use an expression such as ``AnotherObject.X() - Variable(position_offset)``.+GDevelop supports expressions! Expressions are dynamic values that can be used in event parameters. For exampleto set an object position, ​ you can use a fixed number as ``75`` or you can use an expression such as ``AnotherObject.X() - Variable(position_offset)``.
  
 There are two types of expressions:​ There are two types of expressions:​
Line 10: Line 10:
   -  //​**Strings**// ​   -  //​**Strings**// ​
  
-Strings can be used in parameters that receive a text/string value. You can use this expression to read the content of a text object string, ​its color, the text of another variable, etc.+Strings can be used in parameters that receive a text/string value. You can use this expression to read the content of a text object string, ​it'​s ​color, the text of another variable, etc. 
 + 
 +**[[gdevelop5:​all-features:​functions|You can learn more about specific expressions here.]]**
  
 ## Numeric expressions ## Numeric expressions