My orientation sensor code is not working

so here is my code
(i try to make a random color list to change background color of my screen WHEN my screen is landscape mode but it's not working)

do you have any idea?

Use when screen orientation changed and screen orientation for the if control.
You find them under screen blocks .

In landscape mode, Screen1.Width > Screen1.Height.