@Andy ***********
Incorrect the visa does have everything to do with taxation, if you actually use it as it was designed: 5 year with 6 month entries each time.
Meaning over 180 days you become a tax resident. Even you think to be smart and leave 180 days elsewhere, you can still be deemed a tax resident if most of your economic activity takes place in Thailand. This is the same in the west.
People have a lot of wrong understandings about how it works, you won't be avoiding it legally.
This is all globally changing further too: soon you will remain a tax resident in the country you were 3 years a tax resident out of the most recent 10 years. This starts already in France and will then be in Europe, to align with USA. The rest follows.
The new generation with online jobs ruined it, too many escape taxes, so now they make it hard for anyone who is not in the 'old boys category' already.