~ubuntu-branches/ubuntu/hoary/kvirc/hoary

« back to all changes in this revision

Viewing changes to doc/script-tests/if

  • Committer: Bazaar Package Importer
  • Author(s): Robin Verduijn
  • Date: 2004-12-14 15:32:19 UTC
  • mfrom: (0.2.1 upstream) (1.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20041214153219-fdink3gyp2s20b6g
Tags: 2:2.1.3.1-2
* Change Recommends on xmms to a Suggests.
* Rebuild against KDE 3.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Stress for the command parser: if command and block parsing
2
2
{
3
3
{
4
 
{                 
5
 
{                                                                                                       
 
4
{
 
5
{
6
6
{{{{{{{{if                                  (!$#)echo Please \
7
7
execute \
8
8
this \
11
11
some \
12
12
parameters\
13
13
.
14
 
                                                                
 
14
 
15
15
 
16
16
        else {
17
17
 
27
27
 
28
28
                        {{{{if($isnumber($1))
29
29
                        { echo It is a number.;}else { if("$1"@= \
30
 
                                                "\"KVirc\"")echo and it is $1!;else echo And it is not "KVirc" :(; # comment ;}}}}#comment;}}
31
 
                else{#comment;if   ($#==2)          
 
30
                                                "\"KVIrc\"")echo and it is $1!;else echo And it is not "KVIrc" :(; # comment ;}}}}#comment;}}
 
31
                else{#comment;if   ($#==2)
32
32
                                echo You have specified two parameters : {$1-}; else echo You have specified more than two parameters : {$1-};
33
33
                }}}}}}}}}}
34
34
}