Kent,

That's not what he's after. He's wanting to include the line number in logging / diagnostic output when the script is in production. Something like:
Code:
If $sMyVariable=""
Log("["+@SCRIPT+"/"+@SCRIPTLINE+"] sMyVariable unexpectedly blank! Processing continues..")
EndIf