Getting Started
Getting Started with B2Win Suite Scripting
Example 1: Hello, World!
var message = "Hello, World!"
return message;Example 2: Counting Down to Christmas
var christmasDay = LocalDate.of(2023, 12, 25);
var currentDate = LocalDate.now();
var days = Duration.between(currentDate.atStartOfDay(),
christmasDay.atStartOfDay()).toDays();
return days; // This will give you the count of days until December 25th, 2023.