Difference between revisions of "Split Command"
From GeoGebra Manual
(Created page with "<noinclude>{{Manual Page|version=5.0}}</noinclude> {{command|text}} ;Split( <Text>, <List of Texts to split on>) :Splits text. :{{Example|1=<code>Split("3cos(t)cos(2y)", {"cos...") |
|||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=5.0}}</noinclude> {{command|text}} | <noinclude>{{Manual Page|version=5.0}}</noinclude> {{command|text}} | ||
;Split( <Text>, <List of Texts to split on>) | ;Split( <Text>, <List of Texts to split on>) | ||
− | :Splits text. | + | :Splits a text, starting from the texts in the given list. |
:{{Example|1=<code>Split("3cos(t)cos(2y)", {"cos"})</code> returns <code>{"3", "(t)", "(2y)"}</code>.}} | :{{Example|1=<code>Split("3cos(t)cos(2y)", {"cos"})</code> returns <code>{"3", "(t)", "(2y)"}</code>.}} |
Latest revision as of 10:56, 10 December 2020
- Split( <Text>, <List of Texts to split on>)
- Splits a text, starting from the texts in the given list.
- Example:
Split("3cos(t)cos(2y)", {"cos"})
returns{"3", "(t)", "(2y)"}
.