I don't need to test my programs. I have an error-correcting modem.

Difference between revisions of "Unreal Wiki:Sandbox"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
Line 20: Line 20:
 
</uscript>
 
</uscript>
  
 +
Other languages available as well:
 
<source lang=perl>
 
<source lang=perl>
 
my $line = <>;
 
my $line = <>;

Revision as of 01:54, 18 February 2008

Do not edit the area above the separator line, please.


  • This correctly replaces, but for obvious reasons doesn't produce links correctly: a, [b]], [c]]
  • This doesn't even apply #replace: [[{{#replace:a,b,c|,|]], [[}}]]
  • This works, but is very ugly: a, b, c
  • Still ugly, but a bit better: a, b, c

Current UScript highlighter

  1. class TestCommandlet extends Commandlet;
  2.  
  3. function int Main(string Args)
  4. {
  5.   DynamicLoadObject(Args, class'Class');
  6.  
  7.   return 0;
  8. }

Other languages available as well:

my $line = <>;
chomd $line;
if ($line =~ /^y/i) {
    print "You answered yes!\n";
}
else {
    print "You answered no!\n";
}