Seer logo - advanced backtesting for stock, futures and forex trading systems using using technical analysis indicators, charts, money management and position sizing
Functions by Category Functions by Alphabetical list

unless

Usable in an seer event objectUsable in an seer indicator objectUsable in an seer chart object

Used to control the flow of your system. This function is similar to if, except that the expression being tested has to return false. The use of unless is the same as if, and can be used with else.

Examples:

This example will output "if".
  my $number=5;
  if ($number==5) {
    Output('if');
  }
  unless ($number==5) {
    Output('unless');
  }

While this example will output "unless".

my $number=7;
  if ($number==5) {
    Output('if');
  }
  unless ($number==5) {
    Output('unless');
  }

Related functions:

© 2011 seer trading systems ltd
feedback FAQ legal privacy