Can I set xclick to click two picture either one of them?

My situation is the xclick elements is not really fixed. Sometime it would change to other. So, Can I set xclick to click two picture either one of them? And I don’t want to use if command with lastcommandok = false. It’s because sometime it wouldn’t false and xclick something really weird thing.

So you want to click randomly on picture A / B?

Or click B if A is not present?