How can I get the Frist Number of Android version code?

I want to get just the 1st number of version code.
Example: The android version code is 8.1.0
but i just need “8”
How can i get it?

You could use split text at . and then select list item list block

image

Thank you so much
But when it is android “10” or more?

1 Like

What if
Android version 10.0.1?
Index 1 can return “10”???

Have you tried it ? Yes since it splits text at . and get first item in list it would bring whatever in before first period

image

1 Like

Oh!
Let me try and Advanced Thanks to You​:heart_eyes:

2 Likes

Its works fine

1 Like

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