#!F-adobe-helvetica-medium-r-normal--18* #!N #!N #!Rswitch Switch #!N #!N Category #!N #!N #!Lcatflow,dxall755 h Flow Control #!EL #!N #!N Function #!N #!N Selects one input from a list. #!N #!N Syntax #!CForestGreen #!N #!N #!F-adobe-courier-bold-r-normal--18* #!N #!F-adobe-times-bold-r-normal--18* output #!EF = Switch( #!F-adobe-times-bold-r-normal--18* selector, input, ... #!EF ); #!EF #!N #!N #!EC #!N #!N Inputs #!T,1,91,276,461,646 #!F-adobe-times-medium-r-normal--14* #!F-adobe-times-bold-r-normal--18* #!N TAB Name TAB Type TAB Default TAB Description #!EF #!N TAB selector TAB integer TAB 0 TAB object to be selected #!N TAB input TAB value list, string list, or object TAB no default TAB selectable object #!N TAB ... TAB - TAB - TAB more objects to be switched #!N TAB - TAB - TAB - TAB #!EF #!N #!N Outputs #!T,1,161,321,646 #!F-adobe-times-medium-r-normal--14* #!F-adobe-times-bold-r-normal--18* #!N TAB Name TAB Type TAB Description #!EF #!N TAB output TAB object TAB the object switched #!N TAB - TAB - TAB #!EF #!N #!N Functional Details #!N #!N This module selects a specified object from #!F-adobe-times-bold-r-normal--18* input #!EF and passes it through to #!F-adobe-times-bold-r-normal--18* output #!EF . #!N #!I0 #!N #!N #!I0 #!N #!F-adobe-times-bold-r-normal--18* #!F-adobe-times-bold-r-normal--18* selector #!EF #!EF #!I50 #!N specifies which of the #!F-adobe-times-medium-i-normal--18* n #!EF input objects are to be passed to #!F-adobe-times-bold-r-normal--18* output #!EF . If the specified value is 1, the first #!F-adobe-times-bold-r-normal--18* input #!EF object (the second input to the module itself) is passed through; if the specified value is 2, the second input object (the third input to the module) is passed through; and so on. #!N #!N If the specified value is ó 0 or larger than #!F-adobe-times-medium-i-normal--18* n #!EF , #!F-adobe-times-bold-r-normal--18* output #!EF is NULL. #!N #!I0 #!N #!F-adobe-times-bold-r-normal--18* #!F-adobe-times-bold-r-normal--18* input #!EF #!EF #!I50 #!N specifies an input that may or may not be passed to output. #!I0 #!N #!N A single Switch module can accept a maximum of 21 input objects. In the user interface, the default number of enabled tabs is two. (Tabs can be added to the module icon and removed with the appropriate #!F-adobe-times-bold-r-normal--18* ...Input Tab #!EF options in the #!F-adobe-times-bold-r-normal--18* Edit #!EF pull-down menu of the VPE.) Note: In the user interface you may find it helpful to use the first output of the Selector interactor as the first input ( #!F-adobe-times-bold-r-normal--18* selector #!EF ) to Switch. See #!Lselint,dxall430 h Selector and SelectorList Interactors #!EL in IBM Visualization Data Explorer User's Guide for more information. #!N #!N Components #!N #!N All input components are propagated to the output. #!N #!N Example Visual Programs #!CForestGreen #!N #!N #!F-adobe-courier-bold-r-normal--18* #!N AlternateVisualizations.net #!N ConnectingScatteredPoints.net #!N UsingSwitchAndRoute.net #!N SIMPLE/Switch.net #!EF #!N #!N #!EC #!N #!N See Also #!N #!N #!Lcollect,dxall788 h Collect #!EL , #!Lroute,dxall929 h Route #!EL #!N #!N #!Lxmod,dxall263 h Data Explorer Execution Model #!EL in IBM Visualization Data Explorer User's Guide. #!N #!N #!N #!F-adobe-times-medium-i-normal--18* Next Topic #!EF #!N #!N #!Lsystem,dxall963 h System #!EL #!N #!F-adobe-times-medium-i-normal--18* #!N
Generated by dwww version 1.15 on Sat Jun 22 12:47:37 CEST 2024.