Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Check all strings in array for use with an if statement in BMS script.

Featured Replies

  • Author
  • Localization

GHFear, posted Fri Apr 05, 2019 3:42 pm (46499)


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?
  • Author
  • Localization

aluigi, posted Fri Apr 05, 2019 10:26 pm (46503)


Code:
getarray STRINGS 0 -0x80000000
for i = 0 < STRINGS
    getarray STR 0 i
    if STR & "search"
        print "%STR%"
    endif
next i
  • Author
  • Localization

GHFear, posted Fri Apr 05, 2019 10:33 pm (46504)


aluigi wrote:
Code:
getarray STRINGS 0 -0x80000000
for i = 0     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.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.