The scripting functions that puddletag supports are listed here. Use them where ever they can be used.
For the floating point number x.y. Returns integer x + 1.
Returns True if both a and b evaluate to True. Returns False otherwise.
Adds x and y
Capitalizes the first letter of each word in string and converts the rest to lower case.
Capitalizes the first letter of each word in string and leaves all other characters unchanged.
Capitalizes the first letter of the string and converts the rest to lower case.
Returns the smallest integer that is greater than or equal to number.
Returns the ASCII character number of the character.
Divides x by y.
For the floating point number x.y. Returns integer x.
Returns True if x >= y. False otherwise.
Returns true if x > y. False otherwise.
If x is True, y is returned, otherwise z is returned.
If string a is longer than string b, then x is returned, otherwise y.
Returns true if x is a decimal number.
Leftmost n characters of string.
Returns the length of string.
Returns True if x <= y. False otherwise.
Returns True if x < y. False otherwise.
Converts string to lowercase.
If field is multiple-valued, the field’s nth value. Note that it’s just the field name, field and not %field%.
If field is multiple-valued, returns the field’s values joined by sep. Otherwise just returns the field’s value.
Returns first i characters of string, starting at n.
Returns the remainder of x divided by y.
Multiplies x by y.
Returns True if x is not equal to y.
Returns False if x evaluates to True and vice versa.
Pads zeroes to number until it’s of length y. If number has excess zeroes and it’s length is less than y then these zeroes are removed.
Returns True if x is odd.
Returns True if either x or y evaluates to True. False otherwise.
Generates a pseudo-random number between 0 and 1.
Replaces all occurrences of regex with repl in text.
See Replace with RegExp for more examples.
For the floating point number x.y. Returns the integer x if y < 0.5 else x + 1.
Replaces word in string with replaceword. If matchcase is true, a case-sensitive replace is done. Whole is true implies that only whole word matches are replaced.
Returns rightmost n characters in string.
Removes leading and trailing whitespace from string.
Subtracts y from x.
Converts all unicode chars in x to ASCII eg. ‘é’ will become ‘e’. Characters that can’t be converted will be removed.
Converts string to uppercase.
Removes chars (defaults to /\*?;”|:) from string and replaces them with y if specified.