PDA

View Full Version : If Statements


spoofy420
04-20-2010, 10:53 PM
Hey,

Is it possible to use if statements to check if a record exists from csv file?

for example I have a column for phone1 and phone2.

I am trying to display it like this:

Phone #: [phone1]
Alternate Phone #: [phone2]

I would like to check and see if phone2 exists for that row from csv and if not then don't display anything. So for example:

Phone #: [phone1]
if ([phone2] NOT empty)
{
echo "Alternate Phone #: [phone2]";
}

auspiral
04-21-2010, 07:42 PM
that would definitely be useful. I have a business site and many of the records are ommitted. If WFReview could notice a blank field in the CSV and then decide to omit pieces of the template, that would totally rock