Thanks Devin and Jim for your answers.This helps me a lot!! Greetings,
William 2009/9/25 Jim Ault <[email protected]> > Just a little further down the logic trail > > put the the startangle of grc "bar" into barAng > if ( the startangle of grc "foo" is 270 AND \ > ( barAng < 90 OR barAng > 180 ) \ > then > -- barAng not in 2nd quadrant > end if > > if ( the startangle of grc "foo" is 270 ) OR \ > ( the startangle of grc "bar" is 20 ) \ > then > -- do stuff > end if > > Hope this adds a bit to your fun. > > Jim Ault > Las Vegas > > > On Sep 25, 2009, at 10:51 AM, Devin Asay wrote: > > >> On Sep 24, 2009, at 1:34 PM, William de Smet wrote: >> >> Hello there, >>> This must be an easy one but it got me puzzled: How do I check for two >>> conditions to be true at the same time? >>> I want to check the startangle of two graphics to be true: the startangle >>> of >>> grc "1" is 270 & the startangle of grc "2" is 20 >>> Do I use if..then? >>> on mouseup >>> If the startangle of grc "1" is 270 & the startangle of grc "2" is 20 >>> (???, >>> this doesn't work) >>> then ......(following code) >>> end mouseup >>> >>> What to do with the check for the second graphic? >>> How do I combine these? >>> >> >> You're very close. Just use the keyword AND (not case senstive, just in >> upper case for clarity): >> >> if the startangle of grc "foo" is 270 AND \ >> the startangle of grc "bar" is 20 then >> -- do stuff >> end if >> >> HTH >> >> Devin >> >> Devin Asay >> Humanities Technology and Research Support Center >> Brigham Young University >> >> _______________________________________________ >> use-revolution mailing list >> [email protected] >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-revolution >> > > Jim Ault > [email protected] > > > > > _______________________________________________ > use-revolution mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
