Movatterモバイル変換


[0]ホーム

URL:


CFEngine documentation homepage

strcmp

Suggest changes
Table of contents

Prototype:strcmp(string1, string2)

Return type:boolean

Description: Returns whether the two stringsstring1 andstring2 matchexactly.

Arguments:

  • string1:string - String - in the range:.*
  • string2:string - String - in the range:.*

Example:

code
bodycommoncontrol{bundlesequence=>{"example"};}bundleagentexample{classes:"same"expression=>strcmp("test","test");reports:same::"Strings are equal";!same::"Strings are not equal";}

Output:

code
R: Strings are equal

See also:regcmp(),regline()

Still need help?

Chat Ask a question on Github Mailing list
Version 
master3.24 (LTS)3.21 (LTS)view all versions

[8]ページ先頭

©2009-2025 Movatter.jp