# Simple syntax issue?

**URL:** <https://forum.kirupa.com/t/simple-syntax-issue/177560>\
**Category:** Uncategorized\
**Created:** [February 2, 2006, 11:43pm UTC](https://forum.kirupa.com/t/simple-syntax-issue/177560 "2006-02-02T23:43:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geo](https://avatars.discourse-cdn.com/v4/letter/g/f4b2a3/32.png) [@geo](https://forum.kirupa.com/u/geo)\
**Post date:** [February 2, 2006, 11:43pm UTC](https://forum.kirupa.com/t/simple-syntax-issue/177560/1 "2006-02-02T23:43:18Z")

</div>

Hi,  
I just want a function to return true, but after a LoadVars.onLoad  
event.

Am I right in assuuming that the return in the onLoad = function below  
relates ONLY to that function?

What I want is for the sendLockCheck()  
to return true depending on the if statement within the onLoad.

function sendLockCheck() {  
var lockCheckResult\_lv:LoadVars = new LoadVars();  
var lockCheckSend\_lv:LoadVars = new LoadVars();  
var lockCheckArray:Array = new Array();  
lockCheckResult\_lv.onLoad = function(success:Boolean) {  
\_root.loko = lockCheckResult\_lv.loko;  
if (lockCheckResult\_lv.loko != “syn”) {  
return (true);  
}  
};  
lockCheckSend\_lv.sendAndLoad(“check.php”, lockCheckResult\_lv, “POST”);

}

Any help appreciated.

Thanks  
Andrew
