Connecting Tech Pros Worldwide Help | Site Map

Creating a look up table

Newbie
 
Join Date: Oct 2008
Posts: 1
#1: Oct 29 '08
Hello

I have a problem during creating a lookup table. I have to map some text to something else. For example LookUp{" Hello World"} = " Ok Hello";

My question is how do I map if there is a comma between Hello and World i.e Hello, World

LookUp{"Hello, World"} = "Ok Hello"; doesn't work. I am a novice, please help.
KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Location: Southern California USA
Posts: 4,091
#2: Oct 29 '08

re: Creating a look up table


The comma is no problem:

Expand|Select|Wrap|Line Numbers
  1. $LookUp{"Hello, World"} = "Ok Hello";
  2. print $LookUp{"Hello, World"};
So the problem is elsewhere in your code, that we can't see.
Reply