I want a command that gives output1 if User1 uses it and if any other user uses it output2 should come
sry for my english rn xd
Hey @Swanky Panda!
No, such test will always produce a truthy output, so you'll always have Message_For_User as output, and never Message_For_Others.
For the code to work as expected you have two solutions:
$(eval '$(user)' === 'User_Allowed_To_Use' || '$(user)' === 'User2_Allowed_To_Use' ? 'Message_For_User' : 'Message_For_Others';)
$(eval ['User_Allowed_To_Use', 'User2_Allowed_To_Use'].includes('$(user)') ? 'Message_For_User' : 'Message_For_Others';)