ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed May 22, 2019 8:36 am

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Apr 05, 2019 3:42 pm 
User avatar

Joined: Fri Mar 30, 2018 2:48 am
Posts: 172
Let's say I have an array of strings and want to make an "if statement" that goes through the entire array and checks if anything match,
how would this be done in a BMS script?

_________________
Be kind to everyone, even those you do not like.


Top
   
PostPosted: Fri Apr 05, 2019 10:26 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10256
Code:
getarray STRINGS 0 -0x80000000
for i = 0 < STRINGS
    getarray STR 0 i
    if STR & "search"
        print "%STR%"
    endif
next i


Top
   
PostPosted: Fri Apr 05, 2019 10:33 pm 
User avatar

Joined: Fri Mar 30, 2018 2:48 am
Posts: 172
aluigi wrote:
Code:
getarray STRINGS 0 -0x80000000
for i = 0 < STRINGS
    getarray STR 0 i
    if STR & "search"
        print "%STR%"
    endif
next i


Thank you. :) Will make a lot of things easier and more organized than having over 100 if statements after eachother lol.

_________________
Be kind to everyone, even those you do not like.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited