We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9549
    • 93 Posts
    I have a TV which Input Option Values is: Ostfold==1||Aust-Agder==2||Buskerud==3|| and so on...

    To retrieve the actual names of the options (Like "Aust-Agder") instead of number 2 in a TV call, what way is best to do this?

    Right now I’m using a little snippet that looks like this:

    switch ($tv){
    case 1:
    $fylkename = "Østfold";
    break;
    case 2:
    $fylkename = "Aust Agder";
    break;
    case 3:
    $fylkename = "Buskerud";
    break;

    I guess that’s kind of a long way around.