Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Array in FormCalc

kvdvijaykumar
Level 4
Level 4

Hi,

Could someone please let me know how to use array in FormCalc? Any example or reference notes will be of great help.

Thanks,

VJ

1 Accepted Solution
radzmar
Correct answer by
Level 10
Level 10

Hi,

FormCalc is a simple scripting language and does not support objects like arrays.

The only function that come close to an array in JavaScript is Choose(),

This first parameter selects the nth value of the following comma separated strings.

Choose(3, "String1", "String2", "String3", "String4")

returns String3

View solution in original post

3 Replies
radzmar
Correct answer by
Level 10
Level 10

Hi,

FormCalc is a simple scripting language and does not support objects like arrays.

The only function that come close to an array in JavaScript is Choose(),

This first parameter selects the nth value of the following comma separated strings.

Choose(3, "String1", "String2", "String3", "String4")

returns String3

View solution in original post

whiteez31947737
Level 1
Level 1

already google it  and test a few suggestions, cannot find it