S
Suresh Jeevanandam
Guest
In skill, I have a string. Am trying to find the content whether a
string of characters or number.
For example,
lstr = list("abc" "1.3")
foreach(str lstr
case( contentType(str)
('charString
println("Its a string of characters.")
v = str
)
('number
println("Its a number")
v = evalstring(str)
)
);case
);foreach
I am looking for a cadence function or some kind of algo that the
contentType() function does here.
Thanks in advance.
regards,
Suresh J.
string of characters or number.
For example,
lstr = list("abc" "1.3")
foreach(str lstr
case( contentType(str)
('charString
println("Its a string of characters.")
v = str
)
('number
println("Its a number")
v = evalstring(str)
)
);case
);foreach
I am looking for a cadence function or some kind of algo that the
contentType() function does here.
Thanks in advance.
regards,
Suresh J.