Is it possible to set an IF statement inside of the Set Variable function? For example:
IF (something == something) THEN variable=something ELSE variable=somethingelse
Or would I need to manually create the IFs and ELSEs?

Is it possible to set an IF statement inside of the Set Variable function? For example:
IF (something == something) THEN variable=something ELSE variable=somethingelse
Or would I need to manually create the IFs and ELSEs?
Need to do it the other way around. Put the Set Variable Function in the IF Function. If you have only 2 options, use IF. If you have more than 2, use Switch and Case.
Here is another Switch screenshot I made, but you can easily replace Focus Window with Set Variable: