From OpenSCADAWiki
(Importing a new version from external source) |
(Importing a new version from external source) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | The language uses the implicit definition of local variables, which is to define a new variable in the case of assigning a value to it. This type of local variable is set according to the type of the assigning value. For example, the expression '''Qr=Q0*Pi+0.01;''' will define '''Qr''' variable with the type of variable '''Q0'''. | + | The language uses the implicit definition of local variables, which is to define a new variable in the case of assigning a value to it. This type of local variable is set according to the type of the assigning value. For example, the expression '''Qr=Q0*Pi+0.01;''' will define '''Qr''' variable with the type of variable '''Q0'''. And with implementing the built-in functions, there also added the statement '''var''' for defining the variables in the function scope instead global one. |
Latest revision as of 23:54, 24 March 2025
The language uses the implicit definition of local variables, which is to define a new variable in the case of assigning a value to it. This type of local variable is set according to the type of the assigning value. For example, the expression Qr=Q0*Pi+0.01; will define Qr variable with the type of variable Q0. And with implementing the built-in functions, there also added the statement var for defining the variables in the function scope instead global one.