How to get the last index of a list?

My list count is dynamic. How can I always choose the last one?

BLOCK:ConstantList
  value = ["one", "two", "three"]
  => VAR @list
ENDBLOCK

string last = list.Last();
1 Like

Genius! Worked flawlessly.

It’s not genius, it’s C# :rofl:
See what I mean when I say “if there’s no block for something, no biggie, use C#”.
The same cannot be said for OB1 sadly.

1 Like