I've been looking at this command and am wondering why it isn't working.
If anyone would kindly look at it, it would be highly appreciated.
This is a command for posting time depending on which name is input.
$(evalvar r = false;if( '$(touser)'.replace(/@/g,"")) == 'name1')r = '$(time America/Los_Angeles)';else if('$(touser)'.replace(/@/g,"")) == 'Name2'||'name2')r = '$(time Asia/Singapore)';if (r)'The time for ' + '$(touser)'.replace(/@/g,"")) +' is : '+ r + '.';else 'Too bad Mod is too lazy to code the timezone for you lmao';)
The problem I'm having is that even if the touser variable is not equal to name1 or name2 it would still post a timezone instead of writing the else statement.
Thank you for your help.