Jump to content
wupeng

want convet string attribute into array attribute

Recommended Posts

hello 

how can convert string attribute into array attribute .

like this

image.png.1b76c757bb461bcfb50c6e7f6c59c0a0.png

cause

my aim is

l want to calculate how many "/" in path attribute

image.png.632542b3e195a565f9f77ccc42ddebf3.png

so l try to do this and will use foreach function to relaise it

 

  think you .

 

oppppppp    english  is toooooooooo hard

Share this post


Link to post
Share on other sites
Posted (edited)

or  , are you have some simple way to calculate how many "/" in path attribute .

please tell me.

thank you

Edited by wupeng

Share this post


Link to post
Share on other sites

in a wrangle:

int pos[] = find(s@path, "/");
i@num = len(pos);

  • Like 1

Share this post


Link to post
Share on other sites
2 hours ago, Aizatulin said:

Hi,

if you have a string "s" you use len(s) to get its length and s to get access for a single char.

string_to_array.hipnc

thank you , you are amazing

Share this post


Link to post
Share on other sites
2 hours ago, j00ey said:

in a wrangle:

int pos[] = find(s@path, "/");
i@num = len(pos);

thank you,master,it is great

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×