Last active
June 29, 2020 17:14
If, Else If, Or, And Statements - After Effects Expression by Animoplex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If, Else If, Or, And Statements - Created by Animoplex: www.animoplex.com | |
// Examples of different conditional statements to use in After Effects expressions. | |
// Full Tutorial: https://www.youtube.com/watch?v=ppCF7jS1nAs&t=106s | |
// If Statement: | |
if ( a > b ) { | |
"A Wins!"; | |
} | |
// If... Else Statement | |
if ( a > b ) { | |
"A Wins!"; | |
} else { | |
"B Wins!"; | |
} | |
// If... Else If... Else Statement: | |
if ( a > b ) { | |
"A Wins!"; | |
} else if ( a < b ) { | |
"B Wins!"; | |
} else { | |
"It's a Tie!"; | |
} | |
// Ternary Statement: | |
a > b ? "A Wins!" : "B Wins!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment