...
TEMPLATE$(Template$, ReplaceMode%ReplaceMode%=0,1,2, [InpVar])
Arguments
...
Mode%=0
Assume LPP=33.37 with the cell width in de knowledge base defined as 6
...
In this case, insufficient spaces are left in the template between ~LPP and [m].
Mode%=1
To obtain a better result, you can used the ReplaceMode%ReplaceMode%=1:
TEMPLATE$("Length between PP: ~LPP [m]", 1, LPP)
...
Note that 33.37 is followed by a space causing the left bracket to disappear...
Mode%=2
The final option is to use ReplaceMode%ReplaceMode%=2:
TEMPLATE$("Length between PP: ~LPP [m]", 2, LPP)
...
"Length between PP: 33.37 [m]"
Whether to use ReplaceMode%ReplaceMode%=0,1 or 2 depends on the purpose, the length of the parameter names, the definition of Cell width in the Slot & Properties and the format definition of the values in the template. All options have their advantages and disadvantages....
...