User:MikeSiLVO/Boolean conditions draft

From Official Kodi Wiki
Revision as of 16:19, 16 August 2026 by MikeSiLVO (talk | contribs) (Staging boolean conditions parity changes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Staging copy. Three table sections from List of boolean conditions, showing four proposed changes. Not a live page.

Container

Argument added to Container(id).SubItem.

| Returns

True if the user is currently scrolling through the container with id.

Note
If no id is specified it grabs the current container.
This is slightly delayed from the actual scroll start.
Use Container(id).OnScrollNext/OnScrollPrevious to trigger animations immediately on scroll.
| |- | Container(id).SubItem(item_number) | Returns

True if the container with id is focused on the specified subitem.

Note
If no id is specified it grabs the current container.
| |- | Container.CanFilter | Returns

RetroPlayer

RetroPlayer.AchievementsLoggedIn added.

RetroPlayer

Labels Description Version
RetroPlayer.AchievementsLoggedIn Returns
True if logged in to RetroAchievements, False otherwise.
v22
RetroPlayer.DiscEjected Returns
True if the game's disc is ejected (tray is open), False if the game isn't disc-based or the tray is closed.
RetroPlayer.EmptyTray Returns
True if the selected disc state is "No disc", False if a disc is selected or the game isn't disc-based.
RetroPlayer.SupportsEject Returns
True if the game's disc can be ejected, False if the game isn't disc-based or doesn't support ejecting the disc.


System

System.IsInhibit marked deprecated. The unregistered System.IsLoggedOn row is dropped; System.LoggedOn was already listed and keeps the profile link.

| Returns true if the system is connected to the internet, returns false in case no internet connection is available. | |- | System.IsFullscreen | Returns true if Kodi is running fullscreen. | |- | System.IsInhibit | Deprecated in v20, use System.IdleShutdownInhibited instead.
Returns true when shutdown on idle is disabled. | |- | System.IsMaster | Returns true if the profile has entered the master mode | |- | System.IsScreensaverInhibited | Returns

True when screensaver on idle is disabled.

| |- | System.IsStandalone | Returns true if Kodi is running in standalone mode. | |- | System.LoggedOn | Returns

True if a user is currently logged on under a profile.

| |- | System.Platform.Android | Returns true if Kodi is running on an android device. | |-