The first if statement (
) reads ... if @widget is Greater than or equall to 30... which evaluates to true, is being run so the else if is skipped over, even though the else evaluates to true, the first if is read by the compiler first, then because it is true, the compiler skips the else statement.
the easiest fix is to change the if to :
Code:
if($widget >= 31) {}
Then the if evaluates to false, the else if evaluates to true.