English
Chinese
  yTin Online Help  

  中文主页 | Home (english) | 快快下载 | 实战教程 | 命令帮助 | 实用工具 | 常问问题 | 讨论留言 | 友好泥潭 | 我的程序 | 全球镜像 |
getitemnr

Command: getitemnr - retrieves specified element from a list (NEW)

Syntax:   #getitemnr {destination variable} {item number start from 0} {list}

Example: #geti {dothis} {1} {smile {say Hi!} flip bounce}   <--- sets dothis to
'say Hi!'

Example: #getl Length {$rndsocial};#math itemnr $_random//$Length;#geti temp
{$itemnr} {$rndsocial};{$temp}
            (will perform a random social from the 'rndsocial' list)
Another Example:
            #delimiter {;;}
            #var list {n;e;s;;get all;n;;e;e;s}
            #geti {item2} {1} {$list}
The delimiter ";;" breaks the $list into: {n;e;s}, {get all;n} and {e;e;s}
three parts, thus the {item2} variable is now: {get all;n}

See also: delimiter, getlistlength