View Single Post
Posts: 1,950 | Thanked: 1,174 times | Joined on Jan 2008 @ Seattle, USA
#12
Originally Posted by penguinbait View Post
As mentioned "fi" is the end of a "if" statement

if something happens
then
do something
else
dont do something
fi
If you look at question and answer #1 in this post, ... well, it seems to me that it went

(A) If ... fi; else ... fi

rather than

(B) If ... else ... fi

which is what I'd have expected. But when I went with (B) (that is, without the first fi), the script didn't work. With (A) I had success. Is there an "implicit if" in "RC=$?" or something like that?
__________________
.
. .

Help Save This Forum
for N8x0/Diablo Users! Register and Vote for Solution #1 on this Brainstorm. (The Solution will let you see New Posts with any threads you choose -- like the N900 and Maemo5/Fremantle threads -- filtered out.) (To understand the Solution better, see these posts #17, #18, and #19.)