inserting whitespace between two variables

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.
Post Reply
juicytuna
Posts: 2
Joined: Fri Mar 21, 2008 5:38 pm

inserting whitespace between two variables

Post by juicytuna » Fri Mar 21, 2008 5:49 pm

I'm reading the values for 'first name' {{!COL1}} and 'second name' {{!COL2}} from a csv file. I need to enter these two values into a 'full name' form input box.
How can I combine {{!COL1}} and {{!COL2}} so that they are separated by white space? I've tried;
{{!COL1}}+{{!COL2}},
{{!COL1}} {{!COL2}}

but to no avail. Can anyone help me out? Thanks.
User avatar
Tech Support
Posts: 5003
Joined: Tue Sep 20, 2005 7:25 pm
Contact:

Re: inserting whitespace between two variables

Post by Tech Support » Sat Mar 22, 2008 12:14 am

{{!COL1}}<SP>{{!COL2}}

When assigning values to the CONTENT parameter of any iMacro command all whitespaces in the text must be substituted by <SP> and all newlines must be substituted by <BR>.
juicytuna
Posts: 2
Joined: Fri Mar 21, 2008 5:38 pm

Re: inserting whitespace between two variables

Post by juicytuna » Sat Mar 22, 2008 10:34 pm

Thanks, that worked a treat!
Post Reply