dcsimg
A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Logical Nor operator in as3

Threaded View

  1. #1
    Senior Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    953

    Logical Nor operator in as3

    This is a logical nor operator where both have to be wrong to get passed the if statement, I used to always use 2 if statements nested in each other to get this done but now I can use one:

    NOR:
    PHP Code:
    if(!(1==2||2==1)){
    trace(true)


    I forgot what if statement I needed it for but it was one where I couldn't use && like here:
    PHP Code:
    if(1!=2&&2!=1){
    trace(true)

    Last edited by Alloy Bacon; 03-06-2018 at 11:29 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center