Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Error in condition

Featured Replies

I have the following in my config.js file:

prog[pn]=['Microsoft Windows XP Servicepack 2 English'];
desc[pn]=['Microsoft Windows XP Servicepack 2 English'];
uid[pn]=['WXPSP2ENU'];
dflt[pn]=['no'];
cat[pn]=['Service Packs'];
forc[pn]=['no'];
configs[pn]=['Client'];
cond[pn]=['getOSver()=="XP" && getSPver()<2 && getOSlang().substr(0,2)=="EN" && FileExists("S:\\Microsoft\\Servicepacks\\WindowsXP-KB835935-SP2-ENU.exe")'];
cmd1[pn]=['S:\\Microsoft\\Servicepacks\\WindowsXP-KB835935-SP2-ENU.exe" /passive /O /Z /norestart'];
picf[pn]=['InstallPackage.png'];
picw[pn]=['128'];
pich[pn]=['128'];
textl[pn]=['Bottom'];
pn++;

which works OK.

and below that:

prog[pn]=['Microsoft Windows XP Servicepack 3 English'];
desc[pn]=['Microsoft Windows XP Servicepack 3 English'];
uid[pn]=['WXPSP3ENU'];
dflt[pn]=['no'];
cat[pn]=['Service Packs'];
forc[pn]=['no'];
configs[pn]=['Client'];
cond[pn]=['getOSver()=="XP" && getSPver()<3 && getOSlang().substr(0,2)=="EN" && FileExists("S:\\Microsoft\\Servicepacks\\WindowsXP-KB936929-SP3-x86-ENU.exe")'];
cmd1[pn]=['S:\\Microsoft\\Servicepacks\\WindowsXP-KB936929-SP3-x86-ENU.exe" /passive /O /Z /norestart'];
picf[pn]=['InstallPackage.png'];
picw[pn]=['128'];
pich[pn]=['128'];
textl[pn]=['Bottom'];
pn++;

for some reason the check for SP3 doesn't work, it returns an "Error in condition statement" [..] "Treating as a false condition"

The system on which I tested this has SP3 allready installed.

Does anyone have an idea about this?

Edited by Ghost82

  • Author

Also tested this on an SP2 machine, same story, same error.

First off: what version are you using?

I ask because there is no getOSlang() function call. That is why you are getting an error.

There is now in 6.5. Try it with new release.

  • 1 month later...

EDIT: Deleted, since it was compeltely posted in the wrong thread... That's what you get with multiple tabs open in the same forum and different threads....

Edited by Iskander Novena

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.