# Edit Fileytype - Extented Test

The extented test allows for a much more detailed filetype description than the pattern or filecontent alone. In the text area enter a conditional expression similar to the "if" used in several programming languages. Using this expression different conditions can be checked and logically connected with each other.

Conditions can be put in parentheses and logically connected using && or || (&& means AND-connection, i.e., both expressions need to be true; || means OR-connection, i.e., at least one of both expressions need to be true).

The conditions can be compared using <, <=, ==, >=, >, != (lower, lower equal, equal, greater equal, greater, not equal). Additional it is possible to use ~= to compare strings using regular expressions.

The available functions to describe the conditions can also be added to the text area when clicking on button 1 and select them from the requester which also describes the functions.

Using using "${}" bzw. "?{}" it is even possible to use the output of external programs to describe the filetype. If the internal functions are not enough to describe the filetype, any external program can be used to extent the test.

2. If set the extented test will be used for recognition
3. This buttons shows a short help about using the tests

The other tabs are described here: Pattern, Filecontent and Colors. "Flags" are currently not used.

Goto filetypes
Goto Configuration
Home