Hi Daniel,
Thanks for your response. I understand about the function return code. My question is actually about the reason why in the Lua sample script it checks the return code and returns 1 if the function returns 0 but in the native sample script it does not check the return code? Appreciate your feedback, and thank you in advance.