project/com.nokia.carbide.cpp.epoc.engine.tests/data/pkg/example/ifelse.pkg
changeset 0 fb279309251b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project/com.nokia.carbide.cpp.epoc.engine.tests/data/pkg/example/ifelse.pkg	Fri Apr 03 23:33:03 2009 +0100
@@ -0,0 +1,94 @@
+;
+; Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+; All rights reserved.
+; This component and the accompanying materials are made available
+; under the terms of the License "Eclipse Public License v1.0"
+; which accompanies this distribution, and is available
+; at the URL "http://www.eclipse.org/legal/epl-v10.html".
+;
+; Initial Contributors:
+; Nokia Corporation - initial contribution.
+;
+; Contributors:
+;
+; Description: 
+;
+; Demonstrates IF and else statements
+
+;Languages
+&EN, FR
+
+;Header
+#{"TestIf-EN","TestIf-FR"}, (0x1000000F), 1, 2, 3
+
+%{"Vendor", "Vendeur"}
+:"Vendor"
+
+; Big if
+IF     (LANGUAGE=0) OR
+    (MANUFACTURER=5) OR
+    (MANUFACTURER<>5) OR
+    (ManufacturerHardwareRev>0x100) OR
+    (ManufacturerSoftwareRev>0x100) OR
+    (ManufacturerSoftwareBuild>257) OR
+    (Model=0) OR
+    (MachineUid=0) OR
+    (DeviceFamily=0) OR
+    (DeviceFamilyRev>=6) OR
+    (CPU=0) OR
+    (CPUArch=0) OR
+    (CPUABI=0) OR
+    (CPUSpeed>=36) OR
+    (SystemTickPeriod>1) OR
+    (MemoryRAM>=0x800000) OR
+    (MemoryROM>=0x800000) OR
+    (MemoryPageSize=0x1000) OR
+    (PowerBackup) OR
+    (Keyboard) OR
+    (KeyboardDeviceKeys=5) OR
+    (KeyboardAppKeys=8) OR
+    (KeyboardClick) OR
+    (KeyboardClickVolumeMax=10) OR
+    (DisplayXPixels>=640) OR
+    (DisplayYPixels>=200) OR
+    (DisplayXTwips=3200) OR
+    (DisplayYTwips=1440) OR
+    (DisplayColors>=256) OR
+    (DisplayContrastMax=37) OR
+    (Backlight) OR
+    (Pen) OR
+    (PenX>=695) OR
+    (PenY>=280) OR
+    (PenDisplayOn) OR
+    (PenClick) OR
+    (PenClickVolumeMax=1) OR
+    (Mouse) OR
+    (MouseX>=640) OR
+    (MouseY>=200) OR
+    (MouseButtons=2) OR
+    (Mouse) OR
+    (CaseSwitch) OR
+    (LEDs=2) OR
+    (Integratedphone) OR
+    (NumHalAttributes>1)
+    @"sub.sis",(0x10000002)
+    "text\pass.txt"-"", FT, TC
+ENDIF
+
+;Ordinary file to fixed drive
+IF MemoryRAM>0
+    "text\pass.txt"-"", FT, TC
+ELSEIF MemoryRAM=0
+    "text\fail.txt"-"", FT, TC
+ELSEIF EXISTS("c:\private\10000010\import\test.txt")
+    {
+    "text\englishfile.txt"
+    "text\frenchfile.txt"
+    }-"C:\private\10000010\import\lang.txt"
+ELSE
+    {
+    "text\englishfile.txt"
+    "text\frenchfile.txt"
+    }-"C:\private\10000010\import\lang2.txt"
+ENDIF
+        
\ No newline at end of file