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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

FormCalc, If, MessageBox


Not applicable

-Duration, calculated days between two user input dates.

-FullDay, user inputs.

-PartDay, user inputs.

-SumFullPart, calculated sum of FullDay and PartDay, to be hidden.

Note that Duration should always equal the sum of FullDay and PartDay.

After the above, the user inputs some more data, into NEWOBJECT. I wish to ensure that FullDay and HalfDay counts equal Duration.

I have entered the following code into the enter function of NEWOBJECT. (I also would like to send them back to the previous object.)

if (SumFullPart) < > 0 then

$host.messageBox("MsgReUnequal!", "TitleOutOfBalance",1)


I get an error returned: "Syntax error near token '< >' on line 1, column 19.

I have tried with and without quotes to no avail.

Can anyone see my error?


2 Replies

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now