summaryrefslogtreecommitdiff
path: root/tnslc/simple.tnsl
blob: b140c7ab0e70ca01147015f6be049b1b2329a93d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

{}uint8 str1 = "abcd"
{}uint8 str2 = "abce"

/; main [int]
    /; loop (int i = 0; i < 4) [i++]
        /; if (str1{i} !== str2{i})
            /; if (str2{i} == 'e')
                return 3
            ;/
            return 1
        ;/
    ;/
    return 0
;/