Hi,
I'm looking for a way to create a TP program that could perform the following :
if PR[1] is uninitialized, JMP LBL [1]
but I cannot find the right function to know if a position register is empty or uninitialized...
thank you,
Steven
Hi,
I'm looking for a way to create a TP program that could perform the following :
if PR[1] is uninitialized, JMP LBL [1]
but I cannot find the right function to know if a position register is empty or uninitialized...
thank you,
Steven
Check for values = 0. There must be an easier way
If PR[x,1]=0, PR[x,2]=0, etc.
Hi steven.roy ,
In KAREL there is a command to check for unit data and then you can do stuff to change that like initialize it with a default value. I am not aware of a command in TPE that allows checking this condition.
PMC -> uninitialized data is totally empty and will cause a program crash. 'zeros' are considered valid data and so the test for an uninitialized PR will not yield desirable results.
Hope this helps!