Jump to content

BSL:Manual: Difference between revisions

clarifying that strings don't do comparison properly, and linking to Loser's nearly-orphaned article
m (link fixes)
(clarifying that strings don't do comparison properly, and linking to Loser's nearly-orphaned article)
Line 409: Line 409:
|}
|}


Note: Although most of these operators are intended for use with numbers, ''eq'' and ''ne'' work for strings too.
Note: These operators are intended for use with numbers; strings cannot make reliable use of comparators, as explained in the [[#string|string]] section.


===Logical===
===Logical===
Line 509: Line 509:


===string===
===string===
A sequence of textual characters. BSL does not provide any explicit means for manipulating strings (concatenation, trimming, etc.), though see below for a simple trimming hack.
A sequence of textual characters. BSL does not provide any explicit means for manipulating strings (concatenation, trimming, etc.), though see below for a simple trimming hack. It also does not provide a reliable method of string comparison, though perhaps due to a bug rather than an oversight (see [[BSL:String comparison|HERE]] for more information).


  var string example = "hello";
  var string example = "hello";