Vex : @name = @path but without "/"

   697   2   1
User Avatar
Member
70 posts
Joined: 8月 2021
オフライン
Hello guys
I have a simple question :
I want to use the path attribute to create a name attribute, but I don't want the "/" in path attribute. For the moment i have this simple code :
s@name = s@path ;
User Avatar
Member
320 posts
Joined: 2月 2016
オフライン
That's a job for replace() [www.sidefx.com]

s@name = replace(s@path, "/", "_"); // "/" becomes "_" 
// could also replace with "" to just remove the slash
User Avatar
Member
70 posts
Joined: 8月 2021
オフライン
thank you so much
  • Quick Links