Jump to content

If, else


PrMa

Recommended Posts

Say I have 3 functions. How is the best way to code that?

 

I have it like this now (example):

 

If (function 1) {

execute}

 

If (function 2) {

execute}

 

else {

execute}

 

 

The problem is that only the else triggers. Clearly this method is wrong, so the question is; How should i code to make it work?

Link to comment
Share on other sites

Nevermind, solved it myself, thanks anyway :)

 

Just didn't use the else, instead one more digit to specify the third function, and leave the else out.

 

 

And for the second qusetion, it returns a string from a database, in boolean mode. It's for a search function.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.