If it were (100, 200) or (200, 100) with equal probability, you'd switch iff the first envelope contains 100. Nothing interesting about that scenario.
The problem states that (and is only interesting because) one of the envelopes contains twice as much as the other, but not how much, so that the amount in the first envelope tells you nothing.
This is actually impossible because there is no information about how the amount (let's say the bigger of the two) is distributed, which usually implies uniform distribution. But a uniform distribution is only possible if you assume an upper limit (otherwise, what's the expected value?). If there is an upper limit, the question again becomes quite easy (you switch if the first envelope contains less than half the upper limit).