Conditional text based on variable content?
Posted: Mon Nov 25, 2019 12:25 am
I have come across a new problem and am wondering how others deal with it.
I have a variable for 'product name'. If I use the word 'a' before the product name variable e.g. this is a 'product name' requirement, or a 'product name' user is required to x x x.
However, two of the product names I have start with a vowel. So when I build the target, I actually need the word 'an' instead of 'a'. The product name variable isn't always preceded with an 'a', so I can't add the 'an' or 'a' to the variable content without causing a problem.
Any ideas?
Thanks in advance!
I have a variable for 'product name'. If I use the word 'a' before the product name variable e.g. this is a 'product name' requirement, or a 'product name' user is required to x x x.
However, two of the product names I have start with a vowel. So when I build the target, I actually need the word 'an' instead of 'a'. The product name variable isn't always preceded with an 'a', so I can't add the 'an' or 'a' to the variable content without causing a problem.
Any ideas?
Thanks in advance!