Lack of Arrays in Expressions

An array is an often useful construct to map 1 type of value to the other.

I have a use case where I would like to be able to calculate the index value, which then will drive the returned string.

I can work around this, but it would have been very useful to have an array function.
e.g., property=Month; (“Jan”, “Feb”, “Mar”…)

If there is such a capability in Vassal, it’s not apparent from the documentation…

It’s possible to implement them using a series of Global Properties. Create 12 Global Properties Month1, Month2, …, Month12. The use

Property = GetProperty(“Month”+monthNum);

1 Like