25
edits
Changes
→Variable:
==== Variable: ====
We use '''const''' and '''param''' to declare runtime constants and compile-time constants. We can set a '''const''' variable's value at runtime. But '''param''' variable requires to set it at beginning.
var myVar1: real;
const myVar2: real = sqrt(myVar1);
param myVar3 = 3.14;