Darkmatter5 Posted May 19, 2008 Share Posted May 19, 2008 What is the syntax to have an If statement evaluating it a variable equals a specific string of text? Is the following correct? function showTable(table,str) { If (table=="jobs") { var page="getJob.php"; } } Quote Link to comment Share on other sites More sharing options...
rhodesa Posted May 19, 2008 Share Posted May 19, 2008 lowercase i on the 'if', but otherwise yes, that is correct Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.