call a sub function and return
Poul-Henning Kamp
phk at phk.freebsd.dk
Wed Oct 14 16:42:00 CEST 2009
In message <4AD5E2BB.2020807 at danielbruessler.de>, Daniel Bruessler writes:
>Hello,
>
>I don't need a "return" to return a value, I just want to jump out
>before the end of the function. I posted a simplified version of my
>function, the real one has several if-clauses.
Use elseif ?
if (foo) {
} elseif (bar) {
} elseif (foomble) {
} else {
}
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-misc
mailing list