Code: Select all
<OnCreate>
(if (not (objGetData gSource "MineContract"))
(block Nil
(objSetData gSource "MineContract" (sysGetNode))
)
)
</OnCreate>
<Invoke>
(if (sysGetNode) (objGetData gSource "MineContract" )
(block Nil
[Script to use here]
)
)
</Invoke>
I have the script it's meant to run working, but the if statement and on create aren't working. I'm sure it's something glaringly obvious, but I know next to nothing of the script and don't know what to do.