Jump to content
UBot Underground

Calculating Spaces Between 2 Lines


Recommended Posts

as u can see ive the following text, ive trie to remove all spaces between them and made it like this,

however when i do a comparison it does not work as a true statement  is it because of the spaces between text

 

set(#length,"Onepersonfoundthishelpful

Helpful
","Global")

 

 

if($comparison(#length,"= Equals","Onepersonfoundthishelpful

Helpful")) {
    then {
        alert("EXISTS")
        return("")
    }
}

 

 

Link to post
Share on other sites

your comparison does not have the extra line

set(#length,"Onepersonfoundthishelpful

Helpful
","Global")
if($comparison(#length,"= Equals","Onepersonfoundthishelpful

Helpful
")) {
    then {
        alert("EXISTS")
        return("")
    }
}

this works

Regards,

Nick

Link to post
Share on other sites

your comparison does not have the extra line

set(#length,"Onepersonfoundthishelpful

Helpful
","Global")
if($comparison(#length,"= Equals","Onepersonfoundthishelpful

Helpful
")) {
    then {
        alert("EXISTS")
        return("")
    }
}

this works

 

Regards,

Nick

 

thanks that worked but see a case like this where its showing in my debugger and ive no idea of space in such a case, and when i try command it does not work because i dont know whats the space before and after

 

post-16700-0-98041800-1579147850_thumb.png

post-16700-0-38001000-1579147906_thumb.png

Link to post
Share on other sites

You can also accomplish this with regex, using Heopas Regex Replace function, with the regex:   /s

section("Uses Heopas Regex Function") {
    set(#no_space,$plugin function("HeopasCustom.dll", "$Heopas Regex Replace", #length, "\\s", "", "", "False"),"Global")
}

and then you can use the Heopas Regex Count function with /s to count spaces

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...