I am working on an assignment and have come across an issue. I am trying to write and if, else statement. The issue is that the else statement is not being ran. Here is my work:
var age = "2"; //given age
var floorType = "floor"; //given floor (floor or balcony)
var floorS = "10"; 
var balconyS = "6"; 
//toddler1
if (floorType = "floor" && age <= 4) {
    print ("Floor Ticket:" + " "+ "Free"); 
} else if (floorType = "balcony" && age <=4) {
    print ("Balcony Ticket:" + " "+ "Free");
}
When to code is executed you can see that the else statement won't work and it just prints the data from the first if statement.
 
     
     
    