Stupid question: if a PROC contains the following:
VAR BOOL bVar;
WHILE NOT bVAR DO:
What happens? I've come across this in a piece of RAPID I didn't write, but the WHILE loop executes at least once, even though bVAR is never set to True or False in between the VAR and WHILE. Now, in KUKA KRL, this would result in an "undefined variable" error, but after examining this PROC, it seems like RAPID automatically assigns False to a new Bool variable.
Am I right on this, or am I missing something? I've searched the RAPID Reference manual, but I haven't found anything that states how this works explicitly.
Is the default value for num types 0, and [[0,0,0],[1,0,0,0]] for pos types? Is there a list of these "default values" by variable type?