Script 'View_Statuses_Important' Line 4: SyntaxError occured.

Error message;

Script 'View_Statuses_Important' Line 4: SyntaxError occured. unexpected word_not, expecting keyword_then or ';' or '\n'if $game_variables[2] not > $game_variables[3]


Variables I have in game are:

0001😛layer_X 0002😛layer_Y 0003:Sixth_Bottom_Most_Tile_Y0004:Eighth_Right_Most_Tile_X0005:Eighth_Left_Most_Tile_X0006:Sixth_Top_Most_Tile_Y0007:This_Room_Height0008:This_Room_Width0009:South_View_Distance_Of_Player0010:Regular_South_View_Goes_Here_When_Done0011:Regular_North_View_Goes_Here_When_Done0012:North_View_Distance_Of_Player0013:West_View_Distance_Of_Player0014:Regular_West_View_Goes_Here_When_Finished0015:Regular_East_View_Goes_Here_When_Finishef0016:East_View_Distance_Of_Player


What my script View_Important_Statuses has:

if $game_variables[2] > $game_variables[3]  $game_variables[10] = $game_variables[7]$endif $game_variables[2] not > $game_variables[3]  $game_variables[10] = $game_variables[2]+6$endif $game_variables[2] < $game_variables[6]  $game_variables[11] = 0$endif $game_variables[2] not < $game_variables[6]  $game_variables[11] = $game_variables[2]-6$endif $game_variables[1] < game_variables[5]  $game_variables[14] = 0$endif $game_variables[1] not < gamve_variables[5]  $game_variables[14] = $game_variables[1]-8$endif $game_variables[1] > $game_variables[4]  $game_variables[15] = $game_variables[8]$endif $game_variable[1] not > $game_variables[4]  $game_variables[15] = $game_variables[2]+8$end



How do I change my script to work completely properly with no errors nor error nor both please? Thank you 🙂 : ) ; ) 😉
if $game_variables[2] not > $game_variables[3]This is not correct syntax.Use <= instead of 'not >'

or this:

if not($game_variables[12] > $game_variables[3])! is a shortened form of notIn fact, your whole logic could be improved (I don't know what $end is, but it's end)

Code:
if $game_variables[2] > $game_variables[3]  $game_variables[10] = $game_variables[7]else  $game_variables[10] = $game_variables[2]+6endif $game_variables[2] < $game_variables[6]  $game_variables[11] = 0else  $game_variables[11] = $game_variables[2]-6endif $game_variables[1] < game_variables[5]  $game_variables[14] = 0else  $game_variables[14] = $game_variables[1]-8endif $game_variables[1] > $game_variables[4]  $game_variables[15] = $game_variables[8]else  $game_variables[15] = $game_variables[2]+8end
Mega excellent thank you to you Shaz!!

Original thread: https://forums.rpgmakerweb.com/threads/script-view_statuses_important-line-4-syntaxerror-occured.54393/