Hi,
e.g. when defining a variable like this:
|
Source code
|
1
|
set(text, 123);
|
or explicitly like this:
|
Source code
|
1
|
def(text, string, 123);
|
it will be a String internally.
But when doing an mathematical expression, then krpano interprets that String as Number
and the result of such call:
|
Source code
|
1
|
trace(calc(1 + text));
|
will be
|
Source code
|
1
|
124
|
( = 1 + 123)
And when using $variable that Interpretation will be avoided, then the variable will be used as String,
so this call:
|
Source code
|
1
|
trace(calc(1 + $text));
|
will be result in
|
Source code
|
1
|
1123
|
( = 1 + "123")
Best regards,
Klaus