|
From: Achim G. <Str...@ne...> - 2017-10-10 16:34:58
|
Ethan A Merritt via gnuplot-beta writes:
>> Also, why is there no block "else if" or maybe even "elsif"?
>
> No particular reason.
> So far as I can see, all it would gain is to reduce the number of
> required curly brackets by one pair.
> Is there something more subtle I'm missing?
Maybe. If the conditional expressions themselve need to be nested, you
will either end up with unwieldy formatting
--8<---------------cut here---------------start------------->8---
if (…) {
else {
if (…) {
else {
if (…) {
else {
if (…) {
else {
if (…) {
else {
if (…) {
--8<---------------cut here---------------end--------------->8---
or you'll need to explicitly repeat (and revert) the logical expression
from the former branches.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
|