#!/usr/pkg/bin/wsbasic

  #string operations
a$="hello"
b="world"
c=a$+" "+b
print c


  #mixing types  
i=5
test="hello " + i
print test


  #let's see if i still works
print i*5

a="abcdefgh"
print "a=", a
print "len(a)=",len(a)
print "mid(a,3,4)=",mid(a,3,4)
print "mid(a,4,4)=",mid(a,4,4)
print "mid(a,2)=",mid(a,2)

print "left(a,5)=", left(a,5)
print "right(a,5)=", right(a,5)

print "asc(\"a\")=",asc("a")
print "chr(98)=",chr(98)

#use str and val functions
#we take last digit of the number big and multiply by 2 this should give 10
big=12345
print "big=",big
print "last digit of big *2 =", val( right(str(big),1) ) * 2
