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"; } } Link to comment https://forums.phpfreaks.com/topic/106349-if-statement-equals-string-value-help/ 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 Link to comment https://forums.phpfreaks.com/topic/106349-if-statement-equals-string-value-help/#findComment-545087 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.