User Tools

Site Tools


groimp-platform:xl-lambda

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
groimp-platform:xl-lambda [2025/01/23 17:27] – [Variable handling] Timgroimp-platform:xl-lambda [2025/01/24 08:12] (current) – [In-line Lambda functions] Tim
Line 84: Line 84:
   * Variable assignment/change   * Variable assignment/change
   * XL context query   * XL context query
-  * Elvis operator 
   * Java/RGG functions   * Java/RGG functions
 +  * Ternary conditional operator
  
 ==== Variable handling ==== ==== Variable handling ====
Line 109: Line 109:
 This can be combined with any other expression, yet it is important to keep in mind that the expressions on the right of the context query are repeated for each found pattern! This can be combined with any other expression, yet it is important to keep in mind that the expressions on the right of the context query are repeated for each found pattern!
 Therefore ''%%(int i=0,i++,(*F*),i*=2)%%'' and ''%%(int i=0,(*F*),i++,i*=2)%%'' would have different values, because in the first one ''i++'' is only called once and in the second one its called for every F in the scene. Therefore ''%%(int i=0,i++,(*F*),i*=2)%%'' and ''%%(int i=0,(*F*),i++,i*=2)%%'' would have different values, because in the first one ''i++'' is only called once and in the second one its called for every F in the scene.
 +
 +==== Ternary conditional operator ====
 +
 +An Ternary conditional operator is in simple terms a inline if else expression, using the following syntax  to write for instance: if x then b else c with  ''a ? b : c''. With a being a boolean condition and b and c being expressions.  
  
  
  
groimp-platform/xl-lambda.1737649671.txt.gz · Last modified: 2025/01/23 17:27 by Tim