Hi I want to know is there a better way to do this? condition_a is more important than b, b is more important than c, etc.
var slot = condition_a
if (!slot) {
slot = condition_b
if (!slot) {
slot = condition_c
if (!slot) {
slot = condition_d
if (!slot) {
slot = condition_e
}
}
}
}
if (slot) {
//do something
}