multiple outputs from an if statement?

Is there any simple way i could get multiple outputs from one if statement,
Like i wanna change A and B to 5 and 8 in the same if thingy…

Is this what you want. Not sure if this is what you’re asking.

if something == anything then
     a=5
     b=8
end