FIND YOUR NEXT FEW LINES

Results for “if”

Small, practical examples. Search by task or narrow things down below.

946 snippets foundClear filters
PostgresJSON & arrays

Replace a nested JSONB value

Change one path with jsonb_set.

jsonb_set✓ Tested
Arduino / CText & bounded buffers

Replace a token inside an Arduino String

Arduino / C: replace modifies all occurrences in the existing object.

Arduino / C✓ Tested
PostgresWindows & text

Replace all matching text

Normalize repeated whitespace with a regular expression.

regexp_replace✓ Tested
SQLExpressions & aggregates

Replace NULL in a result

Choose a fallback for a missing value.

COALESCE✓ Tested
PythonStrings & dates

Replace text in a string

Replace every occurrence of a substring and keep the result in a new string. The original string is unchanged.

string✓ Tested
SQLSubqueries & ranked selection

Report duplicate business values and their frequency

SQL: Group by a candidate business key and retain only groups with multiple rows.

SQL✓ Tested
SQL ServerSubqueries & ranked selection

Report duplicate business values and their frequency

SQL Server: Group by a candidate business key and retain only groups with multiple rows.

SQL Server✓ Tested
PostgresSubqueries & ranked selection

Report duplicate business values and their frequency

Postgres: Group by a candidate business key and retain only groups with multiple rows.

Postgres✓ Tested
SQLiteSubqueries & ranked selection

Report duplicate business values and their frequency

SQLite: Group by a candidate business key and retain only groups with multiple rows.

SQLite✓ Tested
jQueryDeferred work & queues

Report progress before completion

jQuery: notify calls registered progress handlers while the deferred is pending.

jQuery✓ Tested
HTMLTables & list numbering

Represent a hierarchy with nested lists

HTML: Place the nested list inside its parent list item to preserve the hierarchy.

HTML✓ Tested
HTMLNative disclosure & dialogs

Represent progress whose total is unknown

HTML: Omit value to make a progress element indeterminate.

HTML✓ Tested