I must say to you that this is completely undefined:
| CODE |
| $Active_Interior == 0 |
This variable is not update by the game, It was named like that because almost all the time that Rockstar used 077E to get the current interior, they used this variable.
So, you must use 077E to get the current interior and then check it (of course use a local variable to get the result).