- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi Rafael,
You should download this document, if you don't already have it:
http://partners.adobe.com/public/developer/en/xml/picture_clause_2.0.pdf
There are a few issues with the script.
- Use H for lt 6 and HH for lt 12
- Instead of > use gt. See script below
- The first if statement should be 'or' instead of 'and'
- FormCalc doesn't use 'this.rawValue', just $, which means the same thing.
- You can drop the semi colon ; from the end of the lines in FormCalc
- I would use an if/else statement.
This should get you closer:
if (Num2Time(time(), "H", "pt_BR") lt 6 or Num2Time(time(), "HH", "pt_BR") lt 12) then
$ = "Good Morning"
elseif (Num2Time(time(), "HH", "pt_BR") ge 12 and Num2Time(time(), "HH", "pt_BR") lt 18) then
$ = "Good Afternoon"
elseif (Num2Time(time(), "HH", "pt_BR") ge 18 and Num2Time(time(), "HH", "pt_BR") le 23) then
$ = "Good Night"
endif
Hope that helps,
Niall
Views
Replies
0 Likes
Total Likes