Overview
Function blocks transform and manipulate data within your pipeline. IronBullet provides comprehensive function libraries for:- String manipulation
- List operations
- Cryptographic hashing and encryption
- Type conversion and encoding
- Date and time operations
- Float and integer mathematics
- Time zone conversions
String Functions
Manipulate text and strings.Settings
Operation to perform:
Replace- Replace textSubstring- Extract substringTrim- Remove whitespaceToUpper- Convert to uppercaseToLower- Convert to lowercaseURLEncode- URL encodeURLDecode- URL decodeBase64Encode- Base64 encodeBase64Decode- Base64 decodeHTMLEntityEncode- Encode HTML entitiesHTMLEntityDecode- Decode HTML entitiesSplit- Split by delimiterRandomString- Generate random stringReverse- Reverse stringLength- Get string length
Variable containing input string
Variable name to store result
Capture as user-visible variable
Function-specific parameter (e.g., search string, start index)
Function-specific parameter (e.g., replacement string, length)
Examples
List Functions
Manipulate arrays and lists.Settings
Operation to perform:
Join- Join array into stringSort- Sort arrayShuffle- Randomize orderAdd- Add item to listRemove- Remove item from listDeduplicate- Remove duplicatesRandomItem- Pick random itemLength- Get list length
Variable containing input list
Variable name to store result
Capture as user-visible variable
Function-specific parameter (e.g., delimiter, item to add)
Example
Crypto Functions
Hashing, encryption, and cryptographic operations.Settings
Cryptographic operation:
MD5- MD5 hashSHA1- SHA-1 hashSHA256- SHA-256 hashSHA512- SHA-512 hashSHA384- SHA-384 hashCRC32- CRC32 checksumHMACSHA256- HMAC-SHA256HMACSHA512- HMAC-SHA512HMACMD5- HMAC-MD5BCryptHash- BCrypt hashBCryptVerify- BCrypt verificationBase64Encode- Base64 encodeBase64Decode- Base64 decodeAESEncrypt- AES encryptionAESDecrypt- AES decryption
Variable containing input data
Variable name to store result
Capture as user-visible variable
Encryption key or HMAC secret (required for HMAC/AES operations)
Examples
Conversion Functions
Type conversion and encoding transformations.Settings
Conversion operation:
StringToInt- Parse integerIntToString- Convert to stringStringToFloat- Parse floatFloatToString- Convert to stringBoolToString- Convert booleanStringToBool- Parse booleanIntToFloat- Convert to floatFloatToInt- Truncate to integerBase64Encode/Base64DecodeHexEncode/HexDecodeUrlEncode/UrlDecodeHtmlEncode/HtmlDecodeStringToBytes/BytesToStringIntToBytes/BytesToIntBigIntToBytes/BytesToBigIntBytesToBinaryString/BinaryStringToBytesReadableSize- Format bytes as KB/MB/GBNumberToWords- Convert number to wordsWordsToNumber- Parse words to numberSvgToPng- Convert SVG to PNG
Variable containing input data
Variable name to store result
Capture as user-visible variable
Text encoding for byte operations
Byte order:
big or littleNumber of bytes for integer conversions
Example
Date Functions
Date and time operations.Settings
Date operation:
Now- Current date/timeFormatDate- Format date stringParseDate- Parse date from stringAddTime- Add durationSubtractTime- Subtract durationUnixTimestamp- Convert to Unix timestampUnixToDate- Convert from Unix timestampCurrentUnixTimeMs- Current time in millisecondsCompute- Evaluate math expressionRound- Round number to decimalsDateToUnix- Parse to Unix secondsDateToUnixMs- Parse to Unix milliseconds
Variable containing input date (for parse/convert operations)
Variable name to store result
Date format string (strftime format)
Amount to add/subtract
Time unit:
seconds, minutes, hours, daysCapture as user-visible variable
Extra parameter for Compute (expression) or Round (decimal places)
Examples
Float Functions
Floating-point math operations.Settings
Math operation:
Round,Ceil,Floor,AbsAdd,Subtract,Multiply,DividePower,Sqrt,Min,Max
Variable containing first operand
Second operand (for binary operations)
Additional parameter (e.g., decimal places for Round)
Variable name to store result
Capture as user-visible variable
Integer Functions
Integer math operations.Settings
Math operation:
Add,Subtract,Multiply,DivideModulo,Power,Abs,Min,Max
Variable containing first operand
Second operand (for binary operations)
Variable name to store result
Capture as user-visible variable
Time Functions
Time zone and duration operations.Settings
Time operation:
ConvertTimezone- Convert between time zonesGetTimezone- Get current timezoneIsDST- Check daylight saving timeDurationBetween- Calculate durationAddDuration- Add time durationSubtractDuration- Subtract duration
Variable containing input time
Source timezone (IANA format)
Target timezone for conversion
Output format string
Variable name to store result
Capture as user-visible variable