<?xml version="1.0" encoding="UTF-8"?>
<test id="wmlscript/core/operators/assignment/13" class="A" scope="wmlscript" testtype="application" type="auto" source="wmls11#6.3.1" device="both">
  <assertion>The '|=' operator applies the '|' operator with the value of the WMLScript variable on the lhs as the first operand and the value on the rhs as the second operand and assigns the result to this variable.
</assertion>
  <results>
    <result>
      <name>test</name>
      <value>pass</value>
    </result>
  </results>
  <method>
    <![CDATA[<card newcontext="true" id="main">
<onevent type="onenterforward">
<go href="<script1>#main('test','card1')"/>
</onevent>
<auto_failed>
</card>]]>
  </method>
  <cards>
    <card id="1">
      <![CDATA[<card id="card1">
<onevent type="onenterforward">
<go href="<resulturl>">
<postfield name="test" value="$test"/>
<sessionvars>
</go>
</onevent>
<auto_failed>
</card>
]]>
    </card>
  </cards>
  <scripts>
    <script id="1">
      <![CDATA[extern function main(myvar,next) {
	var result = 'fail';
	var tmp = 96;
	tmp |= 48;
	if (tmp == 112) {
		result = 'pass';
	}
	WMLBrowser.setVar(myvar, result);
	WMLBrowser.go('#' + next);
	return 1;
}
]]>
    </script>
  </scripts>
</test>

