<?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="&amp;&amp;" module="max" category="Math">
	<digest>
		Perform a logical AND
	</digest>
	<description>
		Compares one number to another and outputs a <m>1</m> if the two numbers are both non-zero or a <m>0</m> if either number is 0.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			Math
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Set Left Operand, Trigger the Calculation
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				Set Right Operand
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Result = Left &amp;&amp; Right
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="comparison-value" optional="1" type="int">
			<digest>
				Comparison value
			</digest>
			<description>
				Sets an initial value to be stored by <o>&amp;&amp;</o>. A number in the right inlet changes the value set by the argument.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Perform the comparison with the most recent values
			</digest>
			<description>
				In left inlet: Performs the operation with the numbers currently stored. If there is no argument, <o>&amp;&amp;</o> initially holds <m>0</m>.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Compare to the stored value, cause output
			</digest>
			<description>
				If the number in both inlets is not <m>0</m>, then the output is <m>1</m>. If the number in one or both of the inlets is <m>0</m>, then the output is <m>0</m>. A number in the left inlet triggers the output.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Compare to the stored value, cause output
			</digest>
			<description>
				Converted to <m>int</m>.
			</description>
		</method>
		<method name="in1">
			<arglist>
				<arg name="comparison-value" optional="0" type="int" />
			</arglist>
			<digest>
				Set the comparison value
			</digest>
			<description>
				In right inlet: The number is compared to the number in the left inlet to determine output but only a number in the left inlet will trigger output.
			</description>
		</method>
		<method name="set">
			<arglist>
				<arg name="set-input" optional="0" type="int" />
			</arglist>
			<digest>
				Set the incoming value without output
			</digest>
			<description>
				The word <m>set</m> followed by a number will set the input value without causing output.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="logand.png" caption="Both numbers are not 0... Used to combine comparisons" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="&amp;" />
		<seealso name="|" />
		<seealso name="||" />
		<seealso name="basicchapter19" module="max" type="tutorial" />
	</seealsolist>
	<misc name="Output">
		<entry name="int">
			<description>
				If the number in the left inlet and the number in the right inlet (or specified by the argument) are both not <m>0</m>, then the output is <m>1</m>. Otherwise, the output is <m>0</m>.
			</description>
		</entry>
	</misc>
</c74object>
