properties['Value'] = (IsItMuted === true) ? 'On' : 'Off';
The ? :
is called a ternary operator and acts just like an if
/else
when used in an expression
var testValue= (props.brtUser === 'No') ? 'Promote to User' : 'Demote to Contact';
Use this <p>{testValue}</p>