
* Deleted doc\sample\PCLoginEvent.txt, which contained outdated information. * Follow-up r16812, fixed file encoding. git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16813 54d463be-8e91-2dee-dedb-b68131a5f0ec
26 lines
929 B
Plaintext
26 lines
929 B
Plaintext
//===== 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<4F>F" + (@str$=="StRiNg1");
|
||
mes "Comparison eqNG<4E>F" + (@str$=="sTrInG2");
|
||
mes "Comparison neOK<4F>F" + (@str$!="00000");
|
||
mes "Comparison neNG<4E>F" + (@str$!="StRiNg1");
|
||
mes "Comparison gtOK<4F>F" + ("aab">"aaa");
|
||
mes "Comparison ltNG<4E>F" + ("aab"<"aaa");
|
||
next;
|
||
input @str2$;
|
||
mes "You've entered '" + @str2$ + "' string.";
|
||
close;
|
||
} |