Sixth digit from the sequence

Hi, I need the sixth digit from the sequence: 123456789 - how can I get it in a separate variable? Thank You!

Hi @sullivanne

Try this:

sequence = "123456789"

sixthDigit = sequence.Substring(5, 1)

image

Hope it helps!!

1 Like

Assign activity
myDigitAsString = 123456789.toString(5).toString

1 Like

@sullivanne
Variables:
sequence (String) = “123456789”
sixthDigit (String)

Sequence:
Assign sequence = “123456789”
Assign sixthDigit = sequence.Substring(5, 1)

1 Like

And when your sequence is alread a string variable
then adapt:

Assign activity
myDigitAsString = YourStringVar(5).toString

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.