It would be a real nice feature if you have basic if and loop handling.

Comments

eaton’s picture

Hmmm. I'm not sure how this would look. You mean, conditional tokens that insert different things? Or including actual program logic inside the [token tags]?

gordon’s picture

Yes so that you can do if statements to display different text depending on the value of a token.

Also a foreach handing so that you can loop through arrays.

This will be very handy for E-Commerce and sending emails.

eaton’s picture

Status: Active » Closed (won't fix)

Mmm. After taking a look at this, I really think it would be out of scope for what token.module attempts to provide. It's definitely a useful feature, I just think that it's a bad match for token.module at present...