Python Use Variable In Nested If Else In Javascript W3schools