Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

not equal too & or operator????

 
joe kane
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
A quick one, what the symbol for not equal too e.g.
choose is a input dialog.
also is "or" the correct command I heard it was || or && not to sure..
Thanks joePC
 
Kim Kantola
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Kim Kantola
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use || for or
use && for and
 
Vicken Karaoghlanian
Ranch Hand
Posts: 522
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe, i am not trying to be rude here, but you must first know at least the basics of JPL before you start coding. Try SUN's tutorial here it is pretty simple and easy.
And for the answer to your question:

Good Luck.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
joe PC,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!
 
Wayne L Johnson
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this will give better results:

If you use ORs, the expression will always evaluate to true. Alternately you could use:

The two are logically equivalent.
[ January 26, 2004: Message edited by: Wayne L Johnson ]
 
joe kane
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the help everyone, got it working perfectly, great forum & sorry about the name thing...
Wayne L Johnson --> That worked great..
thanks joe Kane
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic