Hi,
Some of my items have special instruction son them. So if the item is has instructions I out a * in the name field. I was thinking this will be only a couple of items, so I haven't created an additional field for this, and thought I would take of this later. Now it turns out to be more then I expected, and so I have many records with a * in the Name field. What I want to do is run the if command
if ($rec{'Name'} eq '*' ) {
print "Instructions";
}print qq|.
As you already know this didn't work, since it was looking for ONLY * in the Name field. So how can I tell it to search in The Name field, and see if it contains the * sign, opposed to the eq command.
------------------
JFrost
[This message has been edited by JFrost (edited March 04, 1999).]
[This message has been edited by JFrost (edited March 04, 1999).]
Some of my items have special instruction son them. So if the item is has instructions I out a * in the name field. I was thinking this will be only a couple of items, so I haven't created an additional field for this, and thought I would take of this later. Now it turns out to be more then I expected, and so I have many records with a * in the Name field. What I want to do is run the if command
Code:
|; if ($rec{'Name'} eq '*' ) {
print "Instructions";
}print qq|.
As you already know this didn't work, since it was looking for ONLY * in the Name field. So how can I tell it to search in The Name field, and see if it contains the * sign, opposed to the eq command.
------------------
JFrost
[This message has been edited by JFrost (edited March 04, 1999).]
[This message has been edited by JFrost (edited March 04, 1999).]