Test case details

Preparation Code

var x;

Test cases

Test #1

x = true ? true : false; //true

Test #2

if (true) x = true; else x = false; //true

Test #3

x = false ? true : false; //false

Test #4

if (false) x = true; else x = false; //false