wrote:
>
> Dear all,
>
> Is the literal "&" same as "And" in ooPIC compiler?
>
> ex:
>
> If((Range2>20) & (Range2<50))
>
>
> If((Range2>20) And (Range2<50))
>
>
> Are they same?
>
> I'm using B.2.x+ firmware with ooPIC R board.
>
> Thanks.
>
> Samitha
>
They are not the same! Look at www.oopic.com -> Manual -> Languages
-> Operators -> Logical
The Basic syntax uses AND for both bitwise and logical operations
while C and JAVA syntax use & for bitwise and && for logical.
You expression (assuming C or JAVA) should be:
If((Range2>20) && (Range2<50))
Richard
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
No comments:
Post a Comment