Difference between revisions of "KeepIf Command"

From GeoGebra Manual
Jump to: navigation, search
m (1 revision)
(added v4 - example formatting)
Line 1: Line 1:
<noinclude>{{Manual Page}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
+
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
{{command|logical}}
 
{{command|logical}}
 
; KeepIf[Condition, List]: Creates a new list that only contains those elements of the initial list that fulfill the condition.
 
; KeepIf[Condition, List]: Creates a new list that only contains those elements of the initial list that fulfill the condition.
: Example: <tt>KeepIf[x<3, {1, 2, 3, 4, 1, 5, 6}]</tt> returns the new list ''{1, 2, 1}''.
+
: {{Example| <tt>KeepIf[x<3, {1, 2, 3, 4, 1, 5, 6}]</tt> returns the new list ''{1, 2, 1}''.}}

Revision as of 18:23, 13 February 2011

© 2024 International GeoGebra Institute