Ternary Conditional Operatorst (CartoonSmart Video Tutorial Podcast 28) from bool cartoon Watch Video
Preview(s):
Gallery
Play Video: (Note: The default playback of the video is HD VERSION. If your browser is buffering the video slowly, please play the REGULAR MP4 VERSION or Open The Video below for better experience. Thank you!)
Description: This video tutorial we'll talk about how to shorthand some if...else statements with the ternary conditional operators. With a bool variable you can quickly make a value equal something based on two conditions. For example... let someVar = question ? answer1 : answer2 , where question is a bool variable. nnSubscribe to our podcast on iTunes or through your favorite RSS reader at Cartoonsmart.com/podcasts or check out our more serious tutorials by visiting the main page at CartoonSmart.com
Play Video: (Note: The default playback of the video is HD VERSION. If your browser is buffering the video slowly, please play the REGULAR MP4 VERSION or Open The Video below for better experience. Thank you!)