You want a ternary operator:
properties['Value'] = (IsItMuted === true) ? 'On' : 'Off';
The ? : is called a ternary operator and acts just like an if/else when used in an expression.
You want a ternary operator:
properties['Value'] = (IsItMuted === true) ? 'On' : 'Off';
The ? : is called a ternary operator and acts just like an if/else when used in an expression.