QlikView's scripting language borrows heavily from SQL script, as well as VB.Net and Javascript. The QlikView help file and user manual have extremely detailed syntax documentation, along with some examples. If you are still having trouble, don't hesitate to post a question about your code here on the forums!