This example is an adaptation of the window title formula for the Memo form in a standard discussion database. It is a single statement, but it contains embedded @If commands. If the current document is new, the window title becomes "New Memo." If the current document already existed and the Subject field exists and is not blank, the window title becomes the value of the Subject field, prepended by ">> " if it has attachments. If the Subject field does not exist or is blank, the window title becomes the creation date.@If(@IsNewDoc; "New Memo"; @If(@IsAvailable(Subject) & Subject != ""; @If(@Attachments; "» "; "") + Subject; @Text(@Created)))