Skip to content

Commit

Permalink
add compare strings example
Browse files Browse the repository at this point in the history
  • Loading branch information
yeti0904 committed Apr 22, 2024
1 parent b3282d0 commit 0758460
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions examples/compare_strings.cal
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
include "cores/select.cal"
include "std/io.cal"
include "std/array.cal"

let Array str1
let Array str2

"Hello" str1 a<
"Hello" str2 a<

str1 str2 a= printdec new_line

"Hi" str2 a<
str1 str2 a= printdec new_line

"Greetings" str1 a<
str1 str2 a= printdec new_line

str1 "Greetings" al= printdec new_line
2 changes: 1 addition & 1 deletion std

0 comments on commit 0758460

Please sign in to comment.