Hi, I have 3 user roles( administrator, users, member ), this code is behind the binding of a visible property of a label which says “Users”, “Administrator” or “Member” based on what you are logged in as. I want the label to be invisible if you are not logged in as any of the roles but its not working with what i have at the moment. Any help is welcome, thanks.
You can also ditch the pointless if call, since the = operator already returns a boolean result: {this.props.text} = "Administrator" || {this.props.text} = "Users" || {this.props.text} = "Member"