<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="jstrigger" module="max" category="Languages">
	<digest>
		Execute Javascript instructions sequentially
	</digest>
	<description>
		The <o>jstrigger</o> object is similar to the <o>trigger</o> object, except that typed-in arguments within parentheses are passed to the Javascript evaluator. For more information on the Max implementation of Javascript, refer to the Javascript in Max manual. For complete information about Javascript itself, consult a reference book such as Javascript: The Definitive Guide by David Flanagan, published by O'Reilly.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Message Used for Actions
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				Message Used for Actions
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="sequential-Javascript-instructions" optional="0" type="numbers, symbols, or expressions">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				The arguments to the <o>jstrigger</o> object may be either constants or expressions. Constants are numbers or symbols. For each constant, an outlet will be created, and the constant value will be sent out the corresponding outlet when the object receives a message in its left inlet. For example, <o>jstrigger</o> with the arguments <m>ready set 74</m> would send <m>74</m> out the right outlet, followed by <m>set</m> out the middle outlet, followed by <m>ready</m> out the left outlet.
				<br />
				<br />
				Expressions are Javascript expressions contained within parentheses. You can include more than one Javascript statement can be contained within the parentheses, but you must separate the statements by semicolons (;). A semicolon after the last statements is not required, and the word return is not required either. To return a list, you can either create an array object or place items in square brackets separated by commas. Javascript allows you to enter expressions between the commas. See the Examples section.
				<br />
				<br />
				For each expression, an outlet will be created, and the value of the expression will be sent out the corresponding outlet when the <o>jstrigger</o> object receives a message in its left inlet.
				<br />
				<br />
				Note that any use of semicolons or commas in an object box require a preceding backslash (\) character, otherwise you will see the following error message in the Max Console and the object will not be created:
				<br />
				<br />
				* error: object box has comma or semicolon
				<br />
				<br />
				In addition, it is strongly recommended to use single quotes (') rather than double quotes to define string literals. The use of double quotes can produce unexpected results in <b>jstrigger</b> when the object is saved and recreated in a patcher.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				The most recently stored values for each argument are assigned to the a array.
			</digest>
			<description>
				The most recently stored values for each argument are assigned to the a array. Then the expressions in the object are evaluated, right to left, and the value of each expression or constant is sent out the outlet corresponding to each expression.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Contextual/User-specified according to Javascript arguments.
			</digest>
			<description>
				Contextual/User-specified according to Javascript arguments.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Contextual/User-specified according to Javascript arguments.
			</digest>
			<description>
				Contextual/User-specified according to Javascript arguments.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Contextual/User-specified according to Javascript arguments.
			</digest>
			<description>
				Contextual/User-specified according to Javascript arguments.
			</description>
		</method>
		<method name="anything">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Contextual/User-specified according to Javascript arguments.
			</digest>
			<description>
				Contextual/User-specified according to Javascript arguments.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="jstrigger.png" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="bangbang" />
		<seealso name="js" />
		<seealso name="jsui" />
	</seealsolist>
	<misc name="Output">
		<entry name="anything">
			<description>
				When the <o>jstrigger</o> object receives a message in its inlet, the expressions are evaluated from right to left and their results are sent out the corresponding outlets from right to left.
			</description>
		</entry>
	</misc>
</c74object>
