Script Won't Save?

Script Won't Save?

Hi, I came across this issue multiple times, and it is starting to get really frustrating.

Basically, my script will not save. No error message shows up, it just keeps saying "Updating Script", but it never actually updates or saves.

It happens when I am using a conditional statements where I use "&&" to add another condition.

For example, this script will not save.


//Alert Box that shows a pop up message if the user tries to select a bike that is already online

x = Bike_Listings_Current[Bike_Serial = input.Bike]; // fetches records
if(x.Service_Status  !=  "Online" && Bike!=input.Bike) // only show the alert box if the user selects a bike that is in use and if the the current bike on that record is not the same as input bike

{
alert ("You have selected a bike that is currently not ready for use. Please go back and select one that is");
}