<?xml version="1.0" encoding="UTF-8"?>
<component name="PinTask" extends="Task" >

    <script type="text/brightscript" uri="pkg:/source/utils/nodeUtils.brs" />
    <script type="text/brightscript" uri="pkg:/source/utils/generalUtils.brs" />
    <script type="text/brightscript" uri="pkg:/source/utils/urlUtils.brs" />
	
	<script type="text/brightscript">
		<![CDATA[
		sub init()
		    m.top.functionName = "go"
		end sub
		
		sub go()
		    read = regread("lock", m.top.section)
		    if m.top.pin = read then
		        m.top.result = true
		    else 
		    	m.top.result = false
		    end if
		end sub
		]]>
	</script>
	<interface>
		<field id="pin" type="string"/>
		<field id="section" type="string"/>
		<field id="result" type="boolean"/>
	</interface>
</component>

