Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Minor Eval '-' operator does not work with strings in variables
#1
Hi!

First thing's first - currently if you try and eval with a string, number and the minus '-' operator, it trims a number of characters from the end of the string.

So, if you do something like "eval pootis 1 -" it outputs "poot". (Not sure why 0 trims 1 character, 1 trims 2 characters, but I guess it doesn't really matter. Just a bit confusing).

However, if you have a string stored in some variable, like var and you try doing "eval var 1 -" you get nothing. No output. Trying to store the result in a variable also does nothing.

The '+' operator works and it concatenates the string, so I assume there's some sort of bug in here or my misunderstanding in the inner-workings of the system.


Forum Jump:


Users browsing this thread: 1 Guest(s)