Search This Blog

Blog Archive

Tuesday, April 8, 2008

some HScript ! arc, argc

arg - looks really useful.

returns an argument - the one4 specified from a list of argts in a string

it fillows the format arg("stringline", float arg number - starting from 0)
ie
arg("yellow world ",1) returns world
arg("yellow world ",0) returns yellow


argc (arg-count) returns a number of arguments
eg
argc ("This string has eight words seperated by spaces") returns 8

argc ("Quoting `makes this one arg`") only returns 2 as `makes one arg` is only counted as one arg - because of the quotes.

1 comment:

Unknown said...

i dont know if you mean houdini experesions, because Hscript is more for the comand line.