summaryrefslogtreecommitdiff
path: root/doc/sample/npc_test_str.txt
blob: ad3532c4a090b9098dee8a2b72b952ea5016e9c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//===== rAthena Script =======================================
//= Sample: String Test
//===== By: ==================================================
//= rAthena Dev Team
//===== Current Version: =====================================
//= 20070315
//===== Description: ========================================= 
//= An example of string comparisons.
//============================================================

prontera,164,188,1	script	sTrInG2compare	112,{
	set @str$, "StRiNg1";
	mes "sTrInG2 isn't equal to " + @str$ ;
	mes "Our Var is equal to " + @str$ + " ...OK?";
	next;
	mes "Comparison eqOK�F" + (@str$=="StRiNg1");
	mes "Comparison eqNG�F" + (@str$=="sTrInG2");
	mes "Comparison neOK�F" + (@str$!="00000");
	mes "Comparison neNG�F" + (@str$!="StRiNg1");
	mes "Comparison gtOK�F" + ("aab">"aaa");
	mes "Comparison ltNG�F" + ("aab"<"aaa");
	next;
	input @str2$;
	mes "You've entered '" + @str2$ + "' string.";
	close;
}