View Single Post
Old 11-10-2012, 02:28 PM   #5
Pepin33
Zealot
Pepin33 has a complete set of Star Wars action figures.Pepin33 has a complete set of Star Wars action figures.Pepin33 has a complete set of Star Wars action figures.Pepin33 has a complete set of Star Wars action figures.Pepin33 has a complete set of Star Wars action figures.
 
Posts: 109
Karma: 419
Join Date: Aug 2012
Location: Spain
Device: Kindle Touch
Quote:
Originally Posted by theducks View Post
Off the top of my head
use Nested commands (program mode),:
convert the numeric string portion to a (integer)Number, then convert that back to a string. That should lose the leading zeros.
Yes, but how to do that is what I'm asking for.

I tried with:
program: str(int(template('[[identifiers:select(my_id)]]')))

But this doesn't work, and I can't find any function in template language to convert a string to an integer....
Pepin33 is offline   Reply With Quote