Jump to content

If app is installed statement


Recommended Posts

Posted

In case you'd like to check if an app is installed and enabled then use first variant

{{if \IPS\Application::appIsEnabled('forums')}}
	forums app is installed and enabled
{{endif}}

{{if array_key_exists( 'forums', \IPS\Application::applications() )}}
	forums app is installed, but may be disabled
{{endif}}
Posted
10 minutes ago, Adriano Faria said:

 


{{if \IPS\Application::appIsEnabled( 'appkey')}}

 

I see that in the original code but weren't to sure if it was different for non installed.

Thanks your a legend

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...