Is there an 'else' function in WeWeb's formula?

I am trying to make a formula, where if the user got a profile image, it displays the image, and if not it displays a default image.

But I can’t find the else statement. What is the right way to do something like this in Weweb?

ps. Sorry for the noob questions, and probably more incoming, am new here and still trying to find my way.

You can use two different formulas:
If :

ifEmpty:

2 Likes

Thank you. :pray:

1 Like

@AdrienB Sorry for asking another noob question. But how and where do you set a default image like you did with the defaultImageUrl?

People who are also looking for this question:

  1. Upload your default image to WeWeb
  2. Go to Formulas → Add formula
  3. Give it a name, e.g. defaultImageUrl
  4. Edit formula: Paste the URL of the uploaded image
  5. click on Create formula

Now this formula is added to your project and will be accessible in the last tab with the name ‘From Project.’

2 Likes