package WebGUI::i18n::English::Macro_If; our $I18N = { 'if title' => { message => q|If Macro|, lastUpdated => 1112466408, }, 'if body' => { message => q| ^If();
A simple conditional statement (IF/THEN/ELSE) to control layout and messages.

Examples:
Display Happy New Year on 1st January: ^If('^D("%m%d");' eq '0101' , Happy New Year);

Display a message to people on your subnet (192.168.1.*):
^If('^Env("REMOTE_ADDR");' =~ /^192.168.1/,"Hi co-worker","Hi Stranger");

Display a message to Windows users:
^If('^URLEncode("^Env("HTTP_USER_AGENT");");' =~ /windows/i,"Hey... Linux is free !");

Display a message if a user is behind a proxy:
^If('^Env("HTTP_VIA");' ne "", You're behind a proxy !, Proxy-free is the best...);

Display Good Morning/Afternoon/Evening:
^If(^D("%J");<=12,Good Morning,^If(^D("%J");<=18,Good Afternoon,Good evening););

|, lastUpdated => 1112466919, }, }; 1;