I have an if condition that is going to check the flags of several variables. In the spirit of clean code and readability, I would like to have this statement on multiple lines in my file. How would I do this?
I know in VBScript I can use the & _ opperator. In Java I would simple use the next line and be sure I had the correct open and close parenthesis? Can this be done in JavaScript?
if ( ( flg_1 = 'TRUE' ) ||
( flg_2 = 'TRUE' ) ||
( flg_3 = 'TRUE' ) ||
( flg_4 = 'FALSE' ) ||
( flg_5 = 'FALSE' ) ||
( flg_6 = 'FALSE' )
)
{
//do logic here
}
I know in VBScript I can use the & _ opperator. In Java I would simple use the next line and be sure I had the correct open and close parenthesis? Can this be done in JavaScript?
if ( ( flg_1 = 'TRUE' ) ||
( flg_2 = 'TRUE' ) ||
( flg_3 = 'TRUE' ) ||
( flg_4 = 'FALSE' ) ||
( flg_5 = 'FALSE' ) ||
( flg_6 = 'FALSE' )
)
{
//do logic here
}