Jump to content

Switch case values [Solved]


tet3828

Recommended Posts

In my script I have a "Switch"

switch ($fieldLength) {
      case "1":
      <blah,blah,blah>

it carries out just fine.
how ever one of my cases is "if the number is equal to or greater than 8"

this doesn't seem to work:
switch ($fieldLength) {
      case ">=8":
      <yak,yak,yak>

what do I need to type in the case to get the results I need?

also how do I paste my script in this window with the proper colors?
Im using dreamweaver.
all black is driving me nuts
Link to comment
https://forums.phpfreaks.com/topic/26188-switch-case-values-solved/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.