sebb 2004/09/23 04:44:31
Modified: xdocs/usermanual Tag: rel-2_0 functions.xml
Log:
Add __split() example
Revision Changes Path
No revision
No revision
1.14.2.8 +21 -3 jakarta-jmeter/xdocs/usermanual/functions.xml
Index: functions.xml
===================================================================
RCS file: /home/cvs/jakarta-jmeter/xdocs/usermanual/functions.xml,v
retrieving revision 1.14.2.7
retrieving revision 1.14.2.8
diff -u -r1.14.2.7 -r1.14.2.8
--- functions.xml 22 Sep 2004 22:07:17 -0000 1.14.2.7
+++ functions.xml 23 Sep 2004 11:44:31 -0000 1.14.2.8
@@ -437,6 +437,24 @@
The split strings are returned in the variables ${VAR_1}, ${VAR_2} etc.
The count of variables is returned in ${VAR_n}.
</p>
+ <p/>
+ Example:
+ <code>
+ <br/>
+ Define VAR="a,,c" in the test plan.
+ <br/>
+ ${__split(${VAR},VAR)}
+ <br/>
+ This will return the contents of VAR, i.e. "a,,c" and set the following
variables:
+ <br/>
+ VAR_1=a
+ <br/>
+ VAR_2=?
+ <br/>
+ VAR_3=c
+ <br/>
+ VAR_n=3
+ </code>
</description>
<properties>
@@ -455,4 +473,4 @@
</section>
</body>
-</document>
\ No newline at end of file
+</document>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]