https://script.quakenet.org/wiki/index.php?title=$istok&feed=atom&action=history$istok - Revision history2024-03-28T15:42:53ZRevision history for this page on the wikiMediaWiki 1.27.2https://script.quakenet.org/wiki/index.php?title=$istok&diff=4214&oldid=prevMicrobe: fixed commenting syntax2005-11-10T13:47:11Z<p>fixed commenting syntax</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 13:47, 10 November 2005</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l8" >Line 8:</td>
<td colspan="2" class="diff-lineno">Line 8:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Ascii value for dot is ''46''. String where from we are looking ''is a.b.c.d'' and we're looking for token ''b''.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Ascii value for dot is ''46''. String where from we are looking ''is a.b.c.d'' and we're looking for token ''b''.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>  $istok(a.b.c.d, b, 46) returns $true</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>  $istok(a.b.c.d, b, 46) <ins class="diffchange diffchange-inline"> ;</ins>returns $true</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Note that if we'll search the same match from the string ''a.b c.d'' with same parameters, $istok(a.b c.d, b, 46) returns $false because now ''b'' belongs to token a.b.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Note that if we'll search the same match from the string ''a.b c.d'' with same parameters, $istok(a.b c.d, b, 46) returns $false because now ''b'' belongs to token a.b.</div></td></tr>
</table>Microbehttps://script.quakenet.org/wiki/index.php?title=$istok&diff=905&oldid=prevTovrleaf at 15:44, 15 September 20052005-09-15T15:44:19Z<p></p>
<p><b>New page</b></p><div>Returns [[$true]] if token exists, otherwise returns [[$false]].<br />
<br />
$istok(text, token, C)<br />
<br />
''Text'' is the string where we are looking for the match ''token''. ''C'' stands for ascii value of character that is used as delimiter.<br />
<br />
'''Note''': $istokcs() is the case-sensitive version.<br />
<br />
Ascii value for dot is ''46''. String where from we are looking ''is a.b.c.d'' and we're looking for token ''b''.<br />
$istok(a.b.c.d, b, 46) returns $true<br />
<br />
Note that if we'll search the same match from the string ''a.b c.d'' with same parameters, $istok(a.b c.d, b, 46) returns $false because now ''b'' belongs to token a.b.<br />
<br />
''text'' can be anything, figurative constant, [[$1-]] or any parameters, or [[:Category:variables|variables]].<br />
<br />
If you would like to check if you're name is in text the user typed. As separator we use space. Ascii value for it is 32.<br />
on *:[[on text|text]]:#help.script:{<br />
if ($istok([[$1-]], [[$me]], 32)) {<br />
[[beep]]<br />
notice [[$me]] Nick $nick just said your name at [[$chan]]<br />
}<br />
}<br />
<br />
== See Also ==<br />
* [[$asc]] to get character's ascii value.<br />
* [[If-Then-Else]] for more information about if-statements.<br />
<br />
[[Category:Token Identifiers]]</div>Tovrleaf