Adobe Community
All community
This category
This board
Knowledge base
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results forÂ
ShowÂ
 onlyÂ
|
Search instead forÂ
Did you mean:Â
Global community
Language:
Deutsch
English
Español
Français
Português
日本語コミュニティ
Dedicated community for Japanese speakers
í•œêµ ì»¤ë®¤ë‹ˆí‹°
Dedicated community for Korean speakers
Sign In
Exit
Home
Animate
Discussions
Combining && and ||
Home
Animate
Discussions
Combining && and ||
0
Upvote
Combining && and ||
VaporAction
New Here
,
/t5/animate-discussions/combining-amp-amp-and/td-p/12967
Nov 02, 2006
Nov 02, 2006
Copy link to clipboard
Copied
Is this a viable piece of script?
if (((variable1a == true) || (variable1b == true)) && ((variable2a == true) || (variable2b == true)) && (variable3 == true) && (variable4 == true)) {
//insert code here
I wasn't sure if you can combine all those and/or statements like that?
TOPICS
ActionScript
Views
242
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
2 Replies
2
Jump to latest reply
kglad
Community Expert
,
/t5/animate-discussions/combining-amp-amp-and/m-p/12968#M309212
Nov 02, 2006
Nov 02, 2006
Copy link to clipboard
Copied
yes.
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
TimSymons
Engaged
,
/t5/animate-discussions/combining-amp-amp-and/m-p/12969#M309213
Nov 02, 2006
Nov 02, 2006
Copy link to clipboard
Copied
LATEST
Yep, you can. Also if all of the variables are Boolean you could simplify it to
if ( (variable1a || variable1b) && (variable2a || variable2b) && variable3 && variable4 ) {
Tim
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Post Reply
Preview
Exit Preview
never-displayed
You must be signed in to add attachments
never-displayed
Â
Resources
Learn
Get started with Adobe Animate guide
Quick guide for keyboard shortcuts
How to make an ad for Adwords in Animate CC?
Drawing in Animate
Latest Features
What's New in Adobe Animate?