JavaScript condition for operations not working as required -


i want check operator condition , based on assign values. below condition.

if (checkifuserrequesterapprover == "vsat approver" && isdraftorsave == "save" || isdraftorsave == "draft") {     vsatsaving.is_submit = 0;     vsatsaving.status_id = 1; } 

and in checkifuserrequesterapprover vsat requester

still both conditions satisfying , going inside. how possible ?

looks if expression should (checkifuserrequesterapprover == "vsat approver" && (isdraftorsave == "save" || isdraftorsave == "draft"))


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -