<?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="match" module="max" category="Control">
	<digest>
		Watch for a message match, then output the message
	</digest>
	<description>
		Watches an incoming stream of ints, floats, symbols, lists, or messages, and outputs the stream after it has met the specification of its arguments.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			Control
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Input Sequence to be Matched
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				Input Sequence to be Matched
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				list of Matched Sequence
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="match-list" optional="0" type="list">
			<digest>
				The match list
			</digest>
			<description>
				The arguments specify numbers to look for, in the proper order. The word <m>nn</m> can be used as a wild card that will match any number.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Compare to argument list
			</digest>
			<description>
				If the numbers match the arguments, in the proper order, they are sent out as a list.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Compare to argument list
			</digest>
			<description>
				If the numbers match the arguments, in the proper order, they are sent out as a list.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Compare to argument list
			</digest>
			<description>
				If the input-list matches the arguments, in the proper order, they are sent out as a list.
			</description>
		</method>
		<method name="anything">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Compare to argument list
			</digest>
			<description>
				Performs the same as <m>list</m>.
			</description>
		</method>
		<method name="clear">
			<arglist />
			<digest>
				Ignore previously received values
			</digest>
			<description>
				Causes <o>match</o> to forget all numbers it has received up to that time.
			</description>
		</method>
		<method name="set">
			<arglist>
				<arg name="match-list" optional="0" type="list" />
			</arglist>
			<digest>
				Set a new match list
			</digest>
			<description>
				The word <m>set</m>, followed by a list of numbers, specifies a new series of numbers <o>match</o> will look for.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="match.png" caption="Numbers must be the same, and in the same order" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="iter" />
		<seealso name="join" />
		<seealso name="pack" />
		<seealso name="select" />
	</seealsolist>
	<misc name="Output">
		<entry name="list">
			<description>
				The numbers received in the inlet are compared with the arguments. If the numbers are the same, and in the same order, they are sent out the outlet as a list.
			</description>
		</entry>
	</misc>
</c74object>
