1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | _variable = "_var" ; hint _VArIAblE; //"_var"を表示 variable = "var" ; hint VARIaBLE; //"var"を表示 with missionNamespace do { hint variaBLE; //"var"を表示 }; hint (missionNamespace getVariable "VArIAbLe" ); //"var"を表示 missionNamespace setVariable [ "VARIABLE" , "VAR" ]; hint variable; //"VAR"を表示 _funCTION = { hint "func" ; }; null = [] spawn _functioN; //"func"を表示 funCtioN = { hint "func" ; }; call FUNCtiON; //"func"を表示 |
1 2 3 4 | _result = getText (configFile >> "cfgWeapons" >> "arifle_MXC_F" >> "displayname" ); //_result is "MXC 6.5 mm" _result = GEtTeXT (coNfiGfile >> "CfgWEAPONs" >> "aRIFLE_mxc_f" >> "displayNAME" ); //_result is "MXC 6.5 mm" |
1 2 3 4 5 6 | a = "HELLO" ; b = "hello" ; _result = if (a == b) then { "true" } else { "false" }; //_resultは"true" _result = if (a != b) then [{ "true" },{ "false" }]; //resultは"false" |
1 2 3 4 5 6 7 8 9 10 | a = "HELLO" ; b = "hello" ; _result = if (a in [b]) then { "true" } else { "false" }; //_resultは"false" _result = if !(a in [b]) then [{ "true" },{ "false" }]; //resultは"true" _result = if (([b] find a) >= 0) then { "true" } else { "false" }; //_resultは"false" _result = if (([b] find a) < 0) then [{ "true" },{ "false" }]; //resultは"true" |
1 2 3 4 5 6 7 | a = "HELLO" ; b = "hello" ; _result = switch a do { case b : { "true" }; default { "false" }}; //_resultは"false" b = "HELLO" ; _result = switch a do { case b : { "true" }; default { "false" }}; //_resultは"true" |
1 2 3 4 5 6 7 8 9 10 11 | a = "HeLlO" ; a = toUpper a; //aは"HELLO"になった a = toLower a; //aは"hello"になった _array = [ "MARK" , "STEVE" , "HENRY" ]; _firstName = "Steve" ; _result = _firstName in _array; //_resultはfalse _result = (toUpper _firstName) in _array; //_resultはtrue |
Enjoy,
KK
KK's blog – ArmA Scripting Tutorials: Case Sensitivity by Killzone Kid
Translated by POLPOX
Translated by POLPOX
0 件のコメント :
コメントを投稿
注: コメントを投稿できるのは、このブログのメンバーだけです。