TABLE: Difference between revisions

From Compost Wiki
Jump to navigation Jump to search
JeffM (talk | contribs)
No edit summary
JefD (talk | contribs)
No edit summary
Line 1: Line 1:
=Table=
__NOTOC__{{Description|description=Argument command containing three arguments separated by commas. Example:
== Description ==


:Argument command containing three arguments separated by commas. Example:
''Table(4001,''[[SpeedRPM#]]'', 1)''


::''Table(4001,''[[SpeedRPM#]]'', 1)''
The first argument is the Compost Table#. The second argument is the search value. The third argument is the search criteria. Using the example above, `Table' searches Compost's #4001 Table's left list for the value of the second argument, in a range set by the third argument (1 meaning closest to the value). It then returns the string from ComPost's #4001 Table's right list. The first argument is the only one that may be different from the example as the second and third arguments are only recognized as shown. Future versions may allow you to use a different second or third argument.}}
 
:The first argument is the Compost Table#. The second argument is the search value. The third argument is the search criteria. Using the example above, `Table' searches Compost's #4001 Table's left list for the value of the second argument, in a range set by the third argument (1 meaning closest to the value). It then returns the string from ComPost's #4001 Table's right list. The first argument is the only one that may be different from the example as the second and third arguments are only recognized as shown. Future versions may allow you to use a different second or third argument.


{{Stats|id=408|type=Command|class=All Machines}}
{{Stats|id=408|type=Command|class=All Machines}}
Line 12: Line 9:
=TABLE#=
=TABLE#=


== Description ==
{{Description|description=This command is similar to the TABLE command and is used in a similar way. However, any variable can now be passed into the second argument. In addition, the third argument is now hardcoded to be '1' in the command itself. It should not be specified. In addition any type of Compost modifier can be used in front of the 2nd argument. Example: ''TABLE#('5000') SpeedRPM# or: TABLE#('5000')'' [[LAST]] ''CalcRPM1#''. Unlike the TABLE command, TABLE# is a number command and can only return numeric values. If the String box in the TABLE window in Compost has a alphanumeric string, `TABLE#' is unable to convert this to a numeric value and will return 0. Instead, place your letter character in the prog as a literal preceding the TABLE# command.
:This command is similar to the TABLE command and is used in a similar way. However, any variable can now be passed into the second argument. In addition, the third argument is now hardcoded to be '1' in the command itself. It should not be specified. In addition any type of Compost modifier can be used in front of the 2nd argument. Example: ''TABLE#('5000') SpeedRPM# or: TABLE#('5000')'' [[LAST]] ''CalcRPM1#''. Unlike the TABLE command, TABLE# is a number command and can only return numeric values. If the String box in the TABLE window in Compost has a alphanumeric string, `TABLE#' is unable to convert this to a numeric value and will return 0. Instead, place your letter character in the prog as a literal preceding the TABLE# command.


{{Info|id=393|type=Number|class=All Machines}}
{{Info|id=393|type=Number|class=All Machines}}


[[Category:Spindle]]
[[Category:Spindle]]

Revision as of 23:47, 17 October 2007

Description

Argument command containing three arguments separated by commas. Example:

Table(4001,SpeedRPM#, 1)

The first argument is the Compost Table#. The second argument is the search value. The third argument is the search criteria. Using the example above, `Table' searches Compost's #4001 Table's left list for the value of the second argument, in a range set by the third argument (1 meaning closest to the value). It then returns the string from ComPost's #4001 Table's right list. The first argument is the only one that may be different from the example as the second and third arguments are only recognized as shown. Future versions may allow you to use a different second or third argument.


Stats

ID 408
Type Command
Class All Machines
Min Version 11


TABLE#

{{Description|description=This command is similar to the TABLE command and is used in a similar way. However, any variable can now be passed into the second argument. In addition, the third argument is now hardcoded to be '1' in the command itself. It should not be specified. In addition any type of Compost modifier can be used in front of the 2nd argument. Example: TABLE#('5000') SpeedRPM# or: TABLE#('5000') LAST CalcRPM1#. Unlike the TABLE command, TABLE# is a number command and can only return numeric values. If the String box in the TABLE window in Compost has a alphanumeric string, `TABLE#' is unable to convert this to a numeric value and will return 0. Instead, place your letter character in the prog as a literal preceding the TABLE# command.


Stats

ID 393
Type Number
Class All Machines
Min Version 11