Bug? Auto capitalize "if" in Smart String Literals

aeric

Expert
Licensed User
Longtime User
I use Smart String Literals to generate JavaScript in my web API server app.
Many times the IDE will automatically converted the keyword like "if" to "If" and this will cause the JavaScript to break because "If" is not recognize as a correct keyword. (stupid JS)
Maybe this is not easy to fix but I need to be careful all the times.
 

stevel05

Expert
Licensed User
Longtime User
Yes, enclose the code in an #If RUNTIME block and it will not break the formatting.

#If RUNTIME
'write code here
#end if
 
Top