global insanity

I cannot figure out why I cannot set the value of 2 globals via an argument. It works fine for one or the other global.

if (tableA_to_tableB.My_Field == ‘Bill’)
{
return globals.Txt1 = ‘A’
return globals.Txt2 = ‘A’
}

What am I missing. Seems pretty straight forward

looks like bad syntax

if (tableA_to_tableB.My_Field == ‘Bill’)
{
globals.Txt1 = ‘A’ ;
globals.Txt2 = ‘A’
}