A simple algorithm, in Corvid

Looks like you figured out the syntax for If statement but still need syntax to check if a specific field is empty.

Do not rely on text on the page. Check the dataset instead.

Assuming you are checking a dynamic dataset / page with a single item, it will look something like this:

let current = $w (“#myDynamicDataset”). getCurrentItem.fieldkey ();

The field key being the column from your database collection.

You can read Wixs doc to learn more: https://www.wix.com/corvid/reference/wix-dataset/dataset/getcurrentitem