User Tools

Site Tools


tutorials:tool_quick_reference_card

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
tutorials:tool_quick_reference_card [2013/02/12 16:13]
marcus.williams
tutorials:tool_quick_reference_card [2018/06/18 19:19]
marcus.williams [M]
Line 39: Line 39:
 which matches up element names in Y with those in X. which matches up element names in Y with those in X.
  
 +{{ :​howtos:​toolcoding:​mappingtemplate.xls |Mapping Template}}
 ==== N ==== ==== N ====
 **norm()** examples: **norm()** examples:
Line 74: Line 75:
 </​code>​ </​code>​
  
-Navigation and display: ''​where(),​ moveto("​pathName"​),​ up(), look(), showenv()''​+Navigation and display: ''​where()''​''​moveto("​pathName"​)''​''​up()''​''​look()''​''​showenv()''​
  
  
Line 97: Line 98:
 Example 2 (for TOOL integer type variable): Example 2 (for TOOL integer type variable):
 <​code>​ <​code>​
-   integer $elec_startYear +integer $elec_startYear 
-   say (""​) +say (""​) 
-   listen (" ​ What is your elec start year? {2007..2090}[2010] ",​$elec_startYear) +listen (" ​ What is your elec start year? {2007..2090}[2010] ",​$elec_startYear) 
-   if $elec_startYear == 0 +if $elec_startYear == 0 
-   $elec_startYear = 2010 + $elec_startYear = 2010 
-   endif+endif
 </​code>​ </​code>​
  
Line 177: Line 178:
 </​code>​ </​code>​
  
 +**Boolean** operators: ''>'',​ ''<'',​ ''>​='',​ ''<​='',​ ''​=='',​ ''​!='',​ ''​AND'',​ ''​OR''​
 ===== Object Creation and Shaping ===== ===== Object Creation and Shaping =====
  
Line 319: Line 321:
 kingLear kingLear
 </​file>​ </​file>​
 +
 +Or creation with category definition using parameters:
 +
 +<​code>​
 +localinformant vwcCOvpshd[] = create (; object=category,​ groups=vehWeightClass,​ members=vehPowerSrcHD,​ \
 + 4_5andUnder="​ICE_Gas ICE_Diesel ICE_NGL",​ \
 + 4_5-14_9="​ICE_Gas ICE_Diesel",​ \
 + 15andOver="​ICE_Diesel"​)
 +</​code>​
  
 **mapcat()** syntax: **mapcat()** syntax:
Line 355: Line 366:
 </​code>​ </​code>​
  
-Variable types: ''​integer,​ real, boolean, string''​+Variable types: ''​integer''​''​real''​''​boolean''​''​string''​
  
 +TOOL operators by order of precedence:
 +<​code>​
 +* /
 ++ -
 +> < >= <=
 +== !=
 +AND OR
 +assign
 +</​code>​
 ===== Object Display ===== ===== Object Display =====
  
Line 400: Line 420:
 where objectTypes are: ''​view,​ creview, localview''​ where objectTypes are: ''​view,​ creview, localview''​
  
-[List reserved ​TOOL variables]+Reserved ​TOOL variables: ''​$numScns'',​ ''​$numVars'',​ ''​$scnNumbers[]'',​ ''​$scnNames[]'',​ ''​$scnColours[]'',​ ''​$scnDescs[]'',​ ''​$createView'',​ ''​$history'',​ ''​$background''​
  
  
 **quit()** is called as ''​quit (return code)''​ **quit()** is called as ''​quit (return code)''​
tutorials/tool_quick_reference_card.txt · Last modified: 2020/09/08 16:12 by marcus.williams