News:

  • July 26, 2026, 03:52:27 AM

Login with username, password and session length

Author Topic: Request: Negative Indirect Reference  (Read 6071 times)

etElMadr

  • Full Member
  • ***
  • Posts: 37
Request: Negative Indirect Reference
« on: January 11, 2022, 09:01:02 PM »
X[v1+1] works, X[v1-1] doesn't. Any chance negative indexes can be added?

Working around the limitation with a couple extra rungs for now.

Bolt

  • Hero Member
  • *****
  • Posts: 598
Re: Request: Negative Indirect Reference
« Reply #1 on: January 11, 2022, 09:56:58 PM »
It's been brought up before, see here: https://forum.hosteng.com/index.php?topic=2621.msg21385#msg21385

Keep in mind you can do this in a MATH instruction, on both the element and expression field.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6168
  • Yes Pinky, Do-more will control the world!
Re: Request: Negative Indirect Reference
« Reply #2 on: January 12, 2022, 12:59:16 PM »
When originally designed, it was going to be bipolar -32 to +31, but we settled on +0 to 63. Guess that wasn't a good choice, but it would be hard to change now.

But as Bolt mentioned, you can do it in a MATH box, both as an input and as an output.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO