BehaviorTree/BehaviorTree.CPP

Allow concatenation of string and numbers in scripting

Closed this issue · 2 comments

Currently, only concatenation of strings is allowed. Trying to concatenate a number and a string leads to a runtime error

else if (rhs_v.isString() && lhs_v.isString() && op == plus)

It would be nice to also allow concatenation of string and numbers

I can see the use case, I will put this on my list of "todo".

I can see the use case, I will put this on my list of "todo".

I made a PR #771