ID:174718
 
As I've been making verbs and procs, I've been wondering if there's an easier way to do this...
if(!iseating)
if(!training)
if(!passingby)
..// my stuff here

Is there a way I can put this all in one line?

-Camaro-
look up | in under help in dm.
In response to Hendrix
| won't help. || and && will.
In response to Garthor
oh sorry... but i beleive | would work
In response to Hendrix
It would. Until one day you started running into strange things happening (because binary operators work quite a bit differently to logical operators).
Camaro wrote:
As I've been making verbs and procs, I've been wondering if there's an easier way to do this...
> if(!iseating)
> if(!training)
> if(!passingby)
> ..// my stuff here
>
> Is there a way I can put this all in one line?
>
> -Camaro-

if(!iseating || !training || !passingby)

if any one of them are true it will do whats indented

or

if(!iseating && !training && !passingby)

if all of those are true it will do whats indented