S T R U C T O R I Z E R

GNU General Public License



Read here ...
#21: Comparing text variables
Priority: 
normal
Status: 
closed
On wrote:
When I have two variables to be compared AND I fill one of those variables with a text of 2 or more characters, following error appears: Source file: inline evaluation of = "(A Used in next example
read A
read B
IF-STATEMENT: (A ...
Notes:
1) when if fill A and B with 1 character, it works fine.
(I would like to use this to alphabetic ordering of names. )
2) I tried this on several (all Vista) computers and all have the same problem.
On wrote:
First of all, the execution feature does not work for all diagrams. This is because an NS diagram does not follow any strict syntax. Without a strict syntax, a 100% correct interpretation or conversion into any code is NOT possible. The idea behind NS diagram is to allow syntax free development of diagrams.

To explain the error: In Java (the executor is a Java interpreter) single characters can be compared using the standard operators. To compare strings, one need to use the "equals()" method (which doesn't work for some other basic types).