Variables
set
Set a variable to a literal value.
copy_var
Copy one variable's value to another.
get_datetime
Get the current date/time as a formatted string.
- get_datetime:
format: "%Y%m%d" # → "20241215"
save_as: today
- get_datetime:
format: "%Y-%m-%d %H:%M:%S"
save_as: timestamp
Format follows chrono strftime.
get_username
Get the current OS user name.
calc
Evaluate an arithmetic expression.
increment
Increment a numeric variable by 1 (or a custom step).
to_fullwidth / to_halfwidth
Convert between full-width and half-width characters (Japanese text handling).
import_vars
Load a row from a CSV or Excel file as variables.
- import_vars:
file: data.xlsx
sheet: Sheet1 # optional, default: first sheet
row: 0 # 0-based row index
Each column value is stored as a list in __rows__, or as named variables if the first row is a header.
save_vars / load_vars
Persist variables to / restore from a JSON file.