WMLScript Tutorial
WMLScript HOME
WMLScript Intro
WMLScript How to
WML Libraries
WML Dialogs
WML Float
WML Lang
WML String
WML URL
WML Browser
Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality
W3Schools Tutorials
W3Schools Forum
Helping W3Schools
|
WMLScript compare() Function
Complete WMLScript String Library
The compare() function compares two strings and returns a value that represents the result of the comparison.
The compare() function can return one of the following values:
- -1 (if string1 < string2)
- 0 (if string1 = string2)
- 1 (if string1 > string2)
Syntax
| n = String.compare(string1, string2) |
| Part |
Description |
| n |
The integer returned from the function |
| string1 |
A string |
| string2 |
A string |
Example
var a = String.compare("world","world");
var b = String.compare("I","world");
var c = String.compare("world","I");
|
Result
Complete WMLScript String Library
Learn how your website performs under various load conditions
 |
|
WAPT
is a load, stress and performance testing tool for websites and web-based applications.
In contrast to "800-pound gorilla" load testing tools, it is designed to minimize the learning
curve and give you an ability to create a heavy load from a regular workstation.
WAPT is able to generate up to 3000 simultaneously acting virtual users using standard hardware configuration.
Virtual users in each profile are fully customizable. Basic and NTLM authentication methods are supported.
Graphs and reports are shown in real-time at different levels of detail, thus helping to manage the testing process.
Download the free 30-day trial!
|
|
|
Jump to: Top of Page
or HOME or
Printer friendly page
W3Schools provides material for training only. We do not warrant the correctness of its contents.
The risk from using it lies entirely with the user.
While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2008 by Refsnes Data. All Rights Reserved.
|
|
|