User:MikeSiLVO/Boolean conditions draft

From Official Kodi Wiki
Revision as of 16:20, 16 August 2026 by MikeSiLVO (talk | contribs) (Wrap each section as its own table)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Staging copy of proposed changes to List of boolean conditions. Not a live page.

Container

Argument added, matching the source and the doxygen entry.

Labels Description Version
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.

RetroPlayer

New v22 condition, listed before the existing rows.

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.

System

System.IsInhibit marked deprecated. The row for the unregistered name was dropped; the correct entry was already present and keeps the profile link.

Labels Description Version
System.IsInhibit Deprecated in v20, use System.IdleShutdownInhibited instead.
Returns true when shutdown on idle is disabled.
System.LoggedOn Returns
True if a user is currently logged on under a profile.