:: Import Rule [nobr]


<<set $nextButton = "Continue">>
<<set $nextLink = "Rules Assistant">>
//Paste the code into the text box and click Apply//
<br><br>
<span id = "import">
</span>
<<set $tempRule = "">>
<<textbox "$tempRule" $tempRule>>
<<link "Apply">>
	<<if (def $tempRule) && ($tempRule !== "")>>
		<<set $tempRule = eval('({' + $tempRule + '})')>>

		<<if $defaultRules.length > 0>>
			<<set $RulesID += 1>>
		<<else>>
			<<set $RulesID = 1>>
		<</if>>

		<<set $tempRule.ID = $RulesID>>
		<<set $defaultRules.push($tempRule)>>
		<<replace #import>>
			''Rule imported successfully!''
			<br><br>
		<</replace>>
	<<else>>
		<<replace #import>>
			''Rule not imported!''
			<br><br>
		<</replace>>
	<</if>>
	<<unset $tempRule>>
<</link>>
<br><br>
<<link "Continue">>
	<<goto "Rules Assistant">>
<</link>>
