2004-06-10 10:53 PM
2004-06-11 02:57 AM
2004-06-11 10:46 AM
2004-06-11 11:11 AM
2004-06-11 12:24 PM
if (StartSide= 'Notch' or\ StartSide= 'Top Notch' or\ StartSide= 'Bottom Notch' or\ StartSide= 'Reverse Top Notch' or\ StartSide= 'Reverse Notch')\ and\ (EndSide= 'Notch' or\ EndSide= 'Top Notch' or\ EndSide= 'Bottom Notch' or\ EndSide= 'Reverse Top Notch' or\ EndSide= 'Reverse Notch') then ! some code ENDIF
2004-06-11 02:11 PM
Olivier wrote:I wasn't the one that originally made the part, but I have often wondered what the dashes were for in the parameter list.
In the list values i would delete the lines with "------",
because i guess AC cannot interpretate them
Same thing for "error".
Not sure but maybe.
2004-06-11 03:23 PM
Red wrote:I imagine that the author probably put the dashes in as separator lines. It may be graphically desirable but is questionable programming.Olivier wrote:I wasn't the one that originally made the part, but I have often wondered what the dashes were for in the parameter list.
In the list values i would delete the lines with "------",
because i guess AC cannot interpretate them
Same thing for "error".
Not sure but maybe.
2004-06-11 03:36 PM
2004-06-11 05:02 PM
Oleg wrote:Thanks that worked!
The length of a code line is limited. I think, you have exceeded allowable length.
You can continue expression on the next line having placed \ char at the end of a line.
Except for that I think, that you have a logic mistake. AND have the higher precedence over OR (like multiplication over addition) and you need to use brackets as Laszlo suggested.
For example:
1+2*3+4 differs from (1+2) * (3+4) right ?
it is like 1+(2*3)+4
As well
A1 or A2 and A3 or A4 is same as A1 or (A2 and A3) or A4
but not (A1 or A2) and (A3 or A4)
Did you are expected like this ?
Try this:if (StartSide= 'Notch' or\ StartSide= 'Top Notch' or\ StartSide= 'Bottom Notch' or\ StartSide= 'Reverse Top Notch' or\ StartSide= 'Reverse Notch')\ and\ (EndSide= 'Notch' or\ EndSide= 'Top Notch' or\ EndSide= 'Bottom Notch' or\ EndSide= 'Reverse Top Notch' or\ EndSide= 'Reverse Notch') then ! some code ENDIF