Example: lr.get_attrib_long

The following example retrieves the loop value as a long expression, checks its validity, and sends it to the output.

long loop=lr.get_attrib_long("loop");

if(loop==-1)

lr.output_message("Failed to get the loop from the command line");

else

lr.output_message("Loop = "+loop);