You can only do mathematical equations or compares within parenthisis within a stacked statement. With this item...
Flag_Switch_activ_on_ = Switch
... you are asking the contents of a Port PIN to be transferred into a variable... this is NOT an equation or a compare function and cannot be included in a single valid BASIC statement whilst simultaneously elsewhere within that same statement you are performing an equation.
It still comes down to the fact you have TWO (or more) equal signs at different parts of a single statement which is not legal. Put Flag_Switch_activ_on_ = Switch on it's own line, then build your IF/THEN accordingly.


<!--8chars-->


Bookmarks