Hi,
I was just wondering if there was anything wrong with this switch statment - as it doesn't seem to be working:
switch ($Folder[2])
{
case $Folder[2] != "index.php":
$Text = $TextDPurple;
break;
}
What I'm aiming to do is :- if Folder[2] is not index.php then text is TextDPurple.
However, when viewed, TextDPurple is not being incorporated within any of the files - therefore the script must be wrong.
Is there a better way of writing this "switch".




I use Selects if I need to alter the value of the variable with more than three possible outcomes, but that's about it.

Bookmarks