Nowhere can find information about what type of data is equivalent in ROS another, for example:
0 == “0” or not
0 == false or not
“” = 0 or not
etc.
Or operator “=” in ROS works as the “===” operator in PHP (ie compares fully meet the type and value of the variable)?
It is also not clear what results and what types (including with errors) can be output from the command, and under what circumstances.
For example puzzled over this:
:local DefRouteGW [:tostr 192.168.33.3];
([:find $DefRouteGW “/”] != “”) =======> IS NOT TRUE. WHY?
but
:local DefRouteGW 192.168.33.3;
([:find $DefRouteGW “/”] != “”) =======> IS TRUE. WHY?
How to make sure that the result of the command is blank (“” or empty space or nothing at all or false), or conversely that the result is false and nothing else?