IXX-Commands: IF .. THEN ... ELSE ... ENDIF 

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > IXX. - Choose one of two cases >

IXX-Commands: IF .. THEN ... ELSE ... ENDIF 

IFL. / NFL.  - If  File Language

Previous Top Next


MiniRobotLanguage (MRL)

 

IFL. / NFL. Conditional Statement

If File Language

 

 

Intention

 

Conditional Statement. Test if a specified file has the specified file-language property.

 

You can specify the right side of the equation in one of three formats:

t - Text-Result

c - Codepage

k - Keyboard code

 

' IFL.-Example

'

' First we define the file that is been analyzed.

'

$$FIL=?exepath\catseye.dll

 

' Now we use GFL. to display the file-language

' Information, in the Debug-Window of the Editor.

GFL.$$FIL|$$RES|c

DBP.$$RES

 

GFL.$$FIL|$$RES|t

DBP.$$RES

 

' In this case we use two variables

$$LAN=04E4

IFL.$$FIL=$$LAN

 DBP.Language is German

EIF.

 

' In this case we use a variable LEFT and a

' Numeric argument on the RIGHT

' We use the default option that is "|c"

' if no option is specified

IFL.$$FIL=0409

 DBP.Language is English I

EIF.

 

' This is just the same, but the |c is specified.

IFL.$$FIL=0409|c

 DBP.Language is German II

EIF.

 

' Here we use a textual compare,

' You can use 3.2 Standard-Search Pattern

IFL.$$FIL=engli|t

 DBP.Language is English III

EIF.

 

GFL.$$FIL|$$RES|k

DBP.$$RES

END.

 

 

You can use NFL.(Not File Language)  as the negative Form of the command.

 

 

 

Syntax

 

 

IFL.P1opP2[|P3] … ELS. … EIF.

 

 

Parameter Explanation

 

P1 - Variable contains a valid path and filename.

    Must be a Variable, you can NOT specify

    a filename inline as P1.

 

P2  - Variable or file-language description,

    can be a variable or a description, depending on the selected

    P3.

 

op  -  Operator, can be: =  (equal) or !  <>  >< (not equal)

 

P3  - can be one of these letters:

 

t - Text-Result

c - Codepage

k - Keyboard code

 

if omitted. "c" is the default option.

 

 

 

Example

 

'**********************************************

' IFL.-Example

'**********************************************

' First we define the file thar is been analyzed.

'

$$FIL=?exepath\catseye.dll

 

' Now we use GFL. to display the file-language

' Information, in the Debug-Window of the Editor.

GFL.$$FIL|$$RES|c

DBP.$$RES

 

GFL.$$FIL|$$RES|t

DBP.$$RES

 

' In this case we use two variables

$$LAN=04E4

IFL.$$FIL=$$LAN

 DBP.Language is German

EIF.

 

' In this case we use a variable LEFT and a

' Numeric argument on the RIGHT

' We use the default option that is "|c"

' if no option is specified

IFL.$$FIL=0409

 DBP.Language is English I

EIF.

 

' This is just the same, but the |c is specified.

IFL.$$FIL=0409|c

 DBP.Language is German II

EIF.

 

' Here we use a textual compare,

' You can use 3.2 Standard-Search Pattern

IFL.$$FIL=engli|t

 DBP.Language is English III

EIF.

 

GFL.$$FIL|$$RES|k

DBP.$$RES

END.

 

 

 

Remarks

 

IFL. and other IXX. can be nested to unlimited Depth, and they can also enclose Sub-Program Calls or FEX. (Enumerations) to unlimited Depth.

 

Here are the numeric values for the country code:

 

0000 = Language Neutral

0400 = Process Default Language

0436 = Afrikaans

041C = Albanian

0401 = Arabic (Saudi Arabia)

0801 = Arabic (Iraq)

0C01 = Arabic (Egypt)

1001 = Arabic (Libya)

1401 = Arabic (Algeria)

1801 = Arabic (Morocco)

1C01 = Arabic (Tunisia)

2001 = Arabic (Oman)

2401 = Arabic (Yemen)

2801 = Arabic (Syria)

2C01 = Arabic (Jordan)

3001 = Arabic (Lebanon)

3401 = Arabic (Kuwait)

3801 = Arabic (U.A.E.)

3C01 = Arabic (Bahrain)

4001 = Arabic (Qatar)

042B = Armenian. Unicode only (Windows 2000 and later).

044D = Assamese. Unicode only (Windows 2000 and later).

042C = Azeri (Latin)

082C = Azeri (Cyrillic)

042D = Basque

0423 = Belarussian

0445 = Bengali. Unicode only (Windows 2000 and later).

0402 = Bulgarian

0455 = Burmese

0403 = Catalan

0404 = Chinese (Taiwan Region)

0804 = Chinese (PRC)

0C04 = Chinese (Hong Kong SAR, PRC)

1004 = Chinese (Singapore)

1404 = Chinese (Macau)

041A = Croatian

0405 = Czech

0406 = Danish

0413 = Dutch (Netherlands)

0813 = Dutch (Belgium)

0409 = English (United States)

0809 = English (United Kingdom)

0C09 = English (Australian)

1009 = English (Canadian)

1409 = English (New Zealand)

1809 = English (Ireland)

1C09 = English (South Africa)

2009 = English (Jamaica)

2409 = English (Caribbean)

2809 = English (Belize)

2C09 = English (Trinidad)

3009 = English (Zimbabwe)

3409 = English (Philippines)

0425 = Estonian

0438 = Faeroese

0429 = Farsi

040B = Finnish

040C = French (Standard)

080C = French (Belgian)

0C0C = French (Canadian)

100C = French (Switzerland)

140C = French (Luxembourg)

180C = French (Monaco)

0437 = Georgian. Unicode only (Windows 2000 and later).

0407 = German (Standard)

0807 = German (Switzerland)

0C07 = German (Austria)

1007 = German (Luxembourg)

1407 = German (Liechtenstein)

0408 = Greek

0447 = Gujarati. Unicode only (Windows 2000 and later).

040D = Hebrew

0439 = Hindi. Unicode only (Windows 2000 and later).

040E = Hungarian

040F = Icelandic

0421 = Indonesian

0410 = Italian (Standard)

0810 = Italian (Switzerland)

0411 = Japanese

044B = Kannada. This is Unicode only (Windows 2000 and later).

0860 = Kashmiri (India)

043F = Kazakh

0457 = Konkani. This is Unicode only (Windows 2000 and later).

0412 = Korean

0812 = Korean (Johab)

0426 = Latvian

0427 = Lithuanian

0827 = Lithuanian (Classic)

042F = Macedonian

043E = Malay (Malaysian)

083E = Malay (Brunei Darussalam)

044C = Malayalam. Unicode only (Windows 2000 and later).

0458 = Manipuri

044E = Marathi. Unicode only (Windows 2000 and later).

0861 = Nepali (India). Unicode only (Windows 2000 and later).

0414 = Norwegian (Bokmal)

0814 = Norwegian (Nynorsk)

0448 = Oriya. Unicode only (Windows 2000 and later).

0415 = Polish

0416 = Portuguese (Brazil)

0816 = Portuguese (Standard)

0446 = Punjabi. Unicode only (Windows 2000 and later).

0418 = Romanian

0419 = Russian

044F = Sanskrit. Unicode only (Windows 2000 and later).

0C1A = Serbian (Cyrillic)

081A = Serbian (Latin)

0459 = Sindhi

041B = Slovak

0424 = Slovenian

040A = Spanish (Traditional Sort)

080A = Spanish (Mexican)

0C0A = Spanish (Modern Sort)

100A = Spanish (Guatemala)

140A = Spanish (Costa Rica)

180A = Spanish (Panama)

1C0A = Spanish (Dominican Republic)

200A = Spanish (Venezuela)

240A = Spanish (Colombia)

280A = Spanish (Peru)

2C0A = Spanish (Argentina)

300A = Spanish (Ecuador)

340A = Spanish (Chile)

380A = Spanish (Uruguay)

3C0A = Spanish (Paraguay)

400A = Spanish (Bolivia)

440A = Spanish (El Salvador)

480A = Spanish (Honduras)

4C0A = Spanish (Nicaragua)

500A = Spanish (Puerto Rico)

0430 = Sutu

0441 = Swahili (Kenya)

041D = Swedish

081D = Swedish (Finland)

0449 = Tamil. Unicode only (Windows 2000 and later).

0444 = Tatar (Tatarstan)

044A = Telugu. Unicode only (Windows 2000 and later).

041E = Thai

041F = Turkish

0422 = Ukrainian

0420 = Urdu (Pakistan)

0820 = Urdu (India)

0443 = Uzbek (Latin)

0843 = Uzbek (Cyrillic)

042A = Vietnamese

 

 

 

Limitations:

 

-

 

 

See also:

 

    GFL.-Get File Language

    ATF - Append-to-File

    CFF. - Copy-From-File

    CTF - Copy-To-File

    CTI. - Copy-To-Inifile

    CFI. - Copy-From_IniFile

    COP. - Copy File

    GLC. - Get-Line-Count

    IEF. / NEF. - If - exist - File

    LFF - Line-From-File

    SHF. - Shell-File-Operation

    WFF. - Wait-For-File