IF Alternative?

Just checking…(I dont have hardware to test this on right now)
A typical simple IF statement is:

10 IF VAR1 AND VAR2 THEN VAR3 (all VARs are Boolean)

Can this also be written…?

20 VAR3 = VAR1 AND VAR2

10 IF VAR1 AND VAR2 AND VAR3 THEN do something here.

20 VAR3 = VAR1 AND VAR2

This might work but I’d rework it something clearer and easier for the next guy to maintain:

30 IF VAR1 AND VAR2 THEN START VAR3 ELSE STOP VAR3

I cannot have explained myself well enough…

I am wondering if it is possible to do simple logic-operations INSTEAD OF using an IF statement. I realise this is not suitable to achieve a complex result, but if the only reason for an IF-statement is to combine two variables into a third, I wonder if this is possible.

So my question is, can the statement:
10 IF VAR1 AND VAR2 THEN VAR3 = 1 ELSE VAR3 = 0
be replaced by the statement
10 VAR3 = VAR1 AND VAR2

This could be useful as a compact precursor to an IF statement with a large number of input conditions, eg

10 VAR6 = VAR1 AND VAR2 AND VAR3 AND VAR4 AND VAR5
20 IF VAR6 THEN [required outcome] ELSE [something else]

I am just not sure of the kind of logical operation described above is “allowed”.

I havent tried i before, why dont you give it a try and report back here.