Hi,
I wrote a code like

if x=="x1"|x=="x2" {
replace z=y
replace a=b
}

However, it did not work. I do not know what is wrong with it. Most of the answer I have found use if in for loop, but it should work alone as well, isn't it?
Can you please help!!
Thank you so much.

(Sorry for the basic stuff)