[Ferm] Conditional variable definition

Kiss Gabor (Bitman) kissg at ssg.ki.iif.hu
Mon Mar 31 10:24:30 CEST 2014


Dear friends,

This seems to be not working:

@if @eq($TZ,'+0100') {
    @def $WORKING_HOURS_START="07:30";
    @def $WORKING_HOURS_STOP ="17:00";
}
@else {
    @def $WORKING_HOURS_START="06:30";
    @def $WORKING_HOURS_STOP ="16:00";
}

$WORKING_HOURS_START has empty value.

Is there any way to define variables depending on a condition?

Thanks for your help in advance

Gabor


More information about the Ferm mailing list