Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  subroutine within a conditional
« previous next »
  • Print
Pages: [1]

Author Topic: subroutine within a conditional  (Read 1339 times)

Offline Radiod

  • Member
  • *
  • Posts: 2
subroutine within a conditional
« on: November 02, 2006, 09:38:07 PM »
Code: [Select]
%t0.2%xdc;%t0.2%xdd

the above code is a planned subroutine, to have a little man running. My idea was to place it in a conditional that makes the little man run only when fast fowarding..the whole line would look something like this (incomplete atm)

Code: [Select]
%ac%?mp I Am Stop!|%xda|%xdb|t0.2%xdc;%t0.2%xdd|I Am RW! 

my question is; is this even possible? i've tried everything i can think of, checked out alot of other wps' to see if it was done, can't find a thing...does anyone know how i'd go about doing it if it's possible?

P.S: there should be 'greater then' and 'less then' symbols around the condition, but that makes the page hide the code in it..must be an HTML thing, heh
« Last Edit: November 02, 2006, 09:47:31 PM by Radiod »
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: subroutine within a conditional
« Reply #1 on: November 03, 2006, 04:42:09 PM »
The whole conditional has to be put in each subline like this:

%ac%?mp I Am Stop!|%xda|%xdb|t0.2%xdc|I Am RW!;%ac%?mp I Am Stop!|%xda|%xdb|%t0.2%xdd|I Am RW!
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline Radiod

  • Member
  • *
  • Posts: 2
Re: subroutine within a conditional
« Reply #2 on: November 03, 2006, 07:46:17 PM »
thankies ^_^
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  subroutine within a conditional
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.063 seconds with 15 queries.