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.

Problem with isLogOnServer

Featured Replies

This time my problem is with "isLogOnServer", i cant make do what I want.

If I push Alt-G in WPI and check for isLogOnServer it says: isLogOnServer("\\DC-A")

but if i do: cond[pn]=['isLogOnServer("\\DC-A")']; My app. is not shown !

if I do: cond[pn]=['!isLogOnServer("\\DC-A")']; the entry is shown, and I can write whatever I want as servername with no difference.

My goal is to have this:

cond[pn]=['isLogOnServer("\\DC-A") || isLogOnServer("\\DC-B")'];

meaning, Only if your logon server is ether DC-A or DC-B, show this app.

(servernames is not actual names, just ex.)

what am i doing wrong?

Nothing. You are doing it right. Conditions are a little hard to grasp at first.

Conditions are meant to hide things. Grayed conditions are meant to show but disable things.

Look at it like this: if the condition is met, I am going to hide the item.

You may want to use Grayed Conditions, and use "If grayed condition is true, disable the checkbox" option.

  • Author

HI mritter, your the developer so i guess you must know. :-)

but from your answer i get that this: cond[pn]=['getbits()==32']; - should hide my app if OS is 32 bit !? thats not the case. the line is meaning, "show only this app if OS is 32 bit"

so in my opion this line: cond[pn]=['isLogOnServer("\\DC-A")']; - should also be positive and mean "show only this app if LogOnServer is DC-A".

it gets quite confusing if Cond[] ,is ether positive or negative depending of what function you want to run. and still we have the ! sign to make it negative (meaning "if this is NOT true, do this")

just sharing my thoughts :-)

I totally agree it is backwards, but I didn't make it that way. The original person who wrote it only intended for simple checks like FileExists(), and didn't look ahead to the future. So back when it was first written

!FileExists("C:WPI\Install\MyInstaller.exe") hide item becaue doesn't exist

and

FileExists("C:\Program Files\Adobe\Adobe.exe") hide item because already installed

made perfect sense.

Then more items slowly got added, never got straightened out, I came along, added more, people didn't want to change their configs, so it was always left that way. I hate it, too.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

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.