Walk-Through: How to Use the ‘:formatted as text’ Operator

Learn how to write if/else statements directly in the expression composer to show context-driven information — without conditionals.

Abhinav Narain
May 14, 2024 • 2 minute read
A cursor hovers over a window called "Boolean Formatting" in the Bubble editor.

Imagine this: You’re building an app with multiple role types and permissions, and you want to surface unique details associated with a set of information to different user types. With Bubble, you could set up a series of conditional statements to accomplish this — or you could use the :formatted as text operator.

The :formatted as text operator allows you to configure the text displayed anywhere a dynamic expression can be distilled down to a yes/no value. In traditional programming, this is known as a boolean.

Let’s explore how you might use :formatted as text in real life. Use these steps to follow along with the tutorial above.

  • Let’s say we’re building a dashboard that displays users on a team. Instead of showing the same information to every team member, we want to add contextual value for the specific user navigating the page. With the :formatted as text operator, we can craft elaborate, dynamic expressions to offer greater insight for the user.
  • As an example, we’ll change the text shown in the Team Members repeating group to display a greater variety of dynamic data.
  • Right now, the cell’s text only displays the user’s first name. But what if we want the Current User to see their own card more clearly? Or what if we want to show which users are admins? 
  • Instead of writing multiple conditionals — which could become tedious to manage — we can use the :formatted as text operator.
  • This operator lets us vary what text is displayed anywhere a dynamic expression evaluates a yes/no value — otherwise known as a boolean in traditional programming.
  • If yes (meaning the card’s user is the Current User), we can have the text say, “You.” If no, we can display the user’s full name.
  • The superpower of this operator is that we can now group or nest if/else statements together. For example, we can add an additional if/else statement to see if another user is the team admin. If so, we can display that info accordingly.
  • If we don’t want the no condition to add anything, we can leave the formatting input blank.

Happy building!

Start building with a free account

Build your app on Bubble's Free plan. No need to upgrade until you're ready to launch your app.

Join building

LATEST STORIES

An abstract visual of a rectangle with four listed items and three of them checked off, next to two icons: a green one with a checklist and a purple one with a data symbol.

How Much Does an App Builder Cost? A 2026 Pricing Guide

Learn what an app builder costs at each plan level and how to forecast your bill as your app grows, so you can pick a platform you can afford long term.

Bubble
November 06, 2026 • 12 minute read
A mockup of a mobile client portal app showing three cards of content, with two icons and a status indicator for three different items, on a blue and purple gradient background.

How to Build a Client Portal: A Complete Guide for 2026

Learn how to build a secure client portal that keeps each client’s data private, collects documents, shows invoices, and tells clients where their work stands. You’ll also see how client portal software compares with a custom build.

Bubble
November 06, 2026 • 11 minute read
A lock icon and a check icon sliding across the screen in two parallel lines

Preliminary Root Cause Analysis (RCA): October 2026 Security Incident

Our preliminary root cause analysis of the October 26, 2026 security incident: what happened, what we’ve fixed, what we’re still verifying, and what app owners should do now.

Bubble
November 06, 2026 • 5 minute read
An abstract visual of three mobile phone screen mockups, showing gallery cards, a loading screen, and conversation bubbles, on a dark blue gradient background.

A 2026 Guide to Building AI Features in Mobile Apps

Build AI features users love — personalization, chat, camera vision — then ship to iOS and Android fast.

Bubble
November 06, 2026 • 17 minute read

Preliminary Root Cause Analysis (RCA): October 2026 Security Incident

November 06, 2026 • 5 minute read

What Can You Build on Bubble? 25 Examples to Inspire You

September 08, 2026 • 14 minute read

The Easiest Way to Build a Custom CRM With AI

September 01, 2026 • 17 minute read

What Is Bubble AI and How Does It Build Apps?

August 19, 2026 • 12 minute read

See How We Redesigned the Property Editor for Better Building

December 11, 2025 • 4 minute read

Build the next big thing with Bubble

Start building for free