Forum: Forums topas RSS
conditional operator: not equal to ?
rowlesmr #1
Member since Oct 2011 · 172 posts
Group memberships: Members
Show profile · Link to this post
Subject: conditional operator: not equal to ?
Is there a conditional operator for not equal to?

I want say something like:
If(L != 0, useme, usethis)

I can't see one in the TechRef, and != and <> don't work.

I can bodge it with
If(Or(L > 0.1, L < -0.1), useme, usethis)
--
Matthew
AlanCoelho #2
Member since Aug 2011 · 247 posts
Group memberships: Members
Show profile · Link to this post
Yes, the != is the NOT operator as in c
rowlesmr #3
Member since Oct 2011 · 172 posts
Group memberships: Members
Show profile · Link to this post
OK. Maybe I stuffed the rest of my equation up!
--
Matthew
bunny #4
Member since Jun 2018 · 1 post
Group memberships: Members
Show profile · Link to this post
In reply to post #2
Thanks!
Practice coding interview questions - https://www.interviewbit.com
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Not logged in. · Lost password · Register
This board is powered by the Unclassified NewsBoard software, 20120620-dev, © 2003-2011 by Yves Goergen
Current time: 2018-11-15, 17:52:28 (UTC +00:00)