Answer: TypoScript "if" function does not work like the "if" construct known from most programming language. Generally the if function returns true, if all conditions are fulfilled. This resembles a boolean AND combination. If what we would like returned is a false value, we can use the :code`negate` option to negate the result.
With the use of if it is also possible to compare values. For this purpose we use value property.
TypoScript "if" function does not work like the "if" construct known from most programming language. Generally the if function returns true, if all conditions are fulfilled. This resembles a boolean AND combination. If what we would like returned is a false value, we can use the :code`negate` option to negate the result.
With the use of if it is also possible to compare values. For this purpose we use value property. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.