How to hide dropdown value depending on boolean from database.

Hi! I have a database containing multiple Booleans and a page with a dropdown containing multiple values. My question is: Does anyone know how to hide a value of a dropdown depending on whether the boolean is active or not? Thanks in advance!

No Code Solution :
Add a dataset with the connected data you want, add a filter to the dataset and connect the dropdown element to the dataset.

Code Solution :

import wixData from 'wix-data'

$w.onReady(async () {

  const { items } = await wixData.query('Booleans').find()
  //Filters only the true ones, but the items have to be boolena items
  const options = items.filter(Boolean)
  $w('#dropdown').options = options
})