Jump to content
Oliver Hope

'Last index of source' not working as expected

Recommended Posts

Hey

I am trying to use the 'Last index of source' tile but not geting the results i expect, am i doing something wrong/misunderstanding or might something be wrong?

Ylands_190328_114917.thumb.png.f8751805549f5eefba2d907b721705ec.png

This program outputs -1 (character not found).

I would expect an output of 6 ( last character found at position 7)

Share this post


Link to post
Share on other sites

Hi,

sorry for delayed answer. It is not probably now user friendly. We need to add option that some arguments of the instructions will not be needed. When using "Last index of" the Start index have to be the end of the string so it will do what you really want.

(https://www.w3schools.com/jsref/jsref_lastindexof.asp)

  • Thanks 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×