Dunno the word 'were' in the following sentences serves what function
1. Were the treaty to extend automatically to the Islands, it would confer power on the institutions of European Union to legislate for the Islands in matters such as taxation.
2. Were the UK to have a written constitution, all of the rules now contained within various sources would be contained within it.
does the word 'were" mean 'if"?