🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.after.effects.expressions
Article #331

java or operator statement and expressions

#331
From: Rick_Gerard
Date: Sat, 21 Feb 2009 17:32
11 lines
979 bytes
So I tried to simplify some code this morning using the java or operator and it doesn't seem to work. It went something like this:

      if ((time < 4) || (time > 10))}
      val = aVariable}
      else val=0;

What I end up with is zero until 4 but after 10 the val does not return to 0.

I hope this makes sense to somebody out there. I just went back to a stack of if else statements to solve the problem.

Thanks
Technical Details
Message-ID: <59b803d9.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f450a,c0dab6899afff73c,start
X-Google-Attributes: gidf450a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Rick_Gerard@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.after.effects.expressions
Subject: java or operator statement and expressions
Message-ID: <59b803d9.-1@webcrossing.la2eafNXanI>
Date: Sat, 21 Feb 2009 09:32:53 -0800
Lines: 11
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit