VENUS Questions!

@max_gildemeister - It is not possible to dynamically update the name/identifier of a variant in VENUS or HSL, only the value the identifier maintains. Variant identifiers must be declared by the programmer.

In your case, it sounds like it would be appropriate to use a dictionary, via the Dictionary library of HSLExtensions.. Dictionaries are purpose built for maintaining key/value pairs, and can be a useful tool for dynamic programming in VENUS. There has already been some general discussion related to dictionaries in VENUS in a couple of threads here, linked below.

https://forums.pylabrobot.org/t/2d-arrays/852

https://forums.pylabrobot.org/t/returning-a-dictionary/939

-Nick

2 Likes